aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packaging-tools/create_installer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/packaging-tools/create_installer.py b/packaging-tools/create_installer.py
index bbe0738b4..66aed684f 100644
--- a/packaging-tools/create_installer.py
+++ b/packaging-tools/create_installer.py
@@ -380,7 +380,10 @@ def get_component_data(
script_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), script_file)
if not os.path.exists(script_path):
raise CreateInstallerError(f"Custom archive action script missing: {script_path}")
- run_cmd(cmd=[script_path, "--input-dir=" + install_dir, script_args.strip()])
+ cmd = [script_path, "--input-dir=" + install_dir, script_args.strip()]
+ if script_path.endswith(".py"):
+ cmd.insert(0, sys.executable)
+ run_cmd(cmd)
# strip out unnecessary folder structure based on the configuration
count = 0