Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Add stdout redirection in package_complete.py

Dmitry Kazakov897d5e4da9eb
diff --git a/packaging/windows/package-complete.py b/packaging/windows/package-complete.py
index 3f9d5c7e9d..a417065846 100644
--- a/packaging/windows/package-complete.py
+++ b/packaging/windows/package-complete.py
@@ -638,10 +638,10 @@ if args.pre_zip_hook:
print("Running pre-zip hook...")
if args.pre_zip_hook.endswith('.cmd'):
subprocess.run(["cmd", "/c", args.pre_zip_hook,
- f"{pkg_root}\\"], check=True)
+ f"{pkg_root}\\"], stdout=sys.stdout, stderr=sys.stderr, shell=True, check=True)
elif args.pre_zip_hook.endswith('.py'):
subprocess.run([sys.executable, "-u", args.pre_zip_hook,
- f"{pkg_root}\\"], check=True)
+ f"{pkg_root}\\"], stdout=sys.stdout, stderr=sys.stderr, shell=True, check=True)
else:
warnings.warn("ERROR: pre-zip hook has unknown format!")
sys.exit(102)