use subprocess.Popen() the right way

This commit is contained in:
sliptonic
2021-12-30 16:58:45 -06:00
parent f18c730491
commit ca950cf54a

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)