use subprocess.Popen() the right way

This commit is contained in:
sliptonic
2021-12-30 16:58:45 -06:00
parent 1e1f134361
commit 189d3c72a2

View File

@@ -465,9 +465,7 @@ class CommandPathSanity:
)
try:
result = subprocess.Popen(
"asciidoctor {} -o {}".format(reportraw, reporthtml)
)
result = subprocess.Popen(["asciidoctor", reportraw, "-o", reporthtml])
if str(result) == "32512":
msg = "asciidoctor not found. html cannot be generated."
QtGui.QMessageBox.information(None, "Path Sanity", msg)