From 7558945c2ba59b0ffffb512f664480ddda07496b Mon Sep 17 00:00:00 2001 From: sliptonic Date: Fri, 31 Dec 2021 10:04:17 -0600 Subject: [PATCH] Use run() instead of Popen() to avoid need for communicate() call. --- src/Mod/Path/PathScripts/PathSanity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathSanity.py b/src/Mod/Path/PathScripts/PathSanity.py index 0e48f247ef..cfc46f4149 100644 --- a/src/Mod/Path/PathScripts/PathSanity.py +++ b/src/Mod/Path/PathScripts/PathSanity.py @@ -465,7 +465,7 @@ class CommandPathSanity: ) try: - result = subprocess.Popen(["asciidoctor", reportraw, "-o", reporthtml]) + result = subprocess.run(["asciidoctor", reportraw, "-o", reporthtml]) if str(result) == "32512": msg = "asciidoctor not found. html cannot be generated." QtGui.QMessageBox.information(None, "Path Sanity", msg)