diff --git a/automation/scripts/locale/locale_build_parameter_file.py b/automation/scripts/locale/locale_build_parameter_file.py index 1c74c87..2b7fec1 100644 --- a/automation/scripts/locale/locale_build_parameter_file.py +++ b/automation/scripts/locale/locale_build_parameter_file.py @@ -22,7 +22,7 @@ "--client_secret", env_credentials.get("client_secret") ] -process = subprocess.Popen(['python', '-u', script_path] + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding='utf-8') +process = subprocess.Popen([sys.executable, '-u', script_path] + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding='utf-8') # Print the output line by line as it is generated for line in process.stdout: diff --git a/automation/scripts/locale/locale_build_parameter_file_dynamic.py b/automation/scripts/locale/locale_build_parameter_file_dynamic.py index db8a675..14c835b 100644 --- a/automation/scripts/locale/locale_build_parameter_file_dynamic.py +++ b/automation/scripts/locale/locale_build_parameter_file_dynamic.py @@ -23,7 +23,7 @@ "--target_environments", target_environments ] -process = subprocess.Popen(['python', '-u', script_path] + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding='utf-8') +process = subprocess.Popen([sys.executable, '-u', script_path] + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding='utf-8') # Print the output line by line as it is generated for line in process.stdout: diff --git a/automation/scripts/locale/locale_gitsync_env.py b/automation/scripts/locale/locale_gitsync_env.py index ff74861..71f9b4c 100644 --- a/automation/scripts/locale/locale_gitsync_env.py +++ b/automation/scripts/locale/locale_gitsync_env.py @@ -22,7 +22,7 @@ "--client_secret", env_credentials.get("client_secret") ] -process = subprocess.Popen(['python', '-u', script_path] + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding='utf-8') +process = subprocess.Popen([sys.executable, '-u', script_path] + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding='utf-8') # Print the output line by line as it is generated for line in process.stdout: diff --git a/automation/scripts/locale/locale_maintain_feature.py b/automation/scripts/locale/locale_maintain_feature.py index bce61dd..3d3de94 100644 --- a/automation/scripts/locale/locale_maintain_feature.py +++ b/automation/scripts/locale/locale_maintain_feature.py @@ -23,7 +23,7 @@ "--action", action, "--branch_name", branch_name] -process = subprocess.Popen(['python', '-u', script_path] + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding='utf-8') +process = subprocess.Popen([sys.executable, '-u', script_path] + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding='utf-8') # Print the output line by line as it is generated for line in process.stdout: diff --git a/automation/scripts/locale/locale_release.py b/automation/scripts/locale/locale_release.py index 3606e86..73a9798 100644 --- a/automation/scripts/locale/locale_release.py +++ b/automation/scripts/locale/locale_release.py @@ -29,7 +29,7 @@ "--client_secret", env_credentials.get("client_secret") ] - process = subprocess.Popen(['python', '-u', script_path] + args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, encoding='utf-8') + process = subprocess.Popen([sys.executable, '-u', script_path] + args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, encoding='utf-8') # Print output live for line in process.stdout: diff --git a/automation/scripts/locale/locale_setup.py b/automation/scripts/locale/locale_setup.py index 024f86f..853e06e 100644 --- a/automation/scripts/locale/locale_setup.py +++ b/automation/scripts/locale/locale_setup.py @@ -26,7 +26,7 @@ "--github_pat", env_credentials.get("github_pat") ] - process = subprocess.Popen(['python', '-u', script_path] + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding='utf-8') + process = subprocess.Popen([sys.executable, '-u', script_path] + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding='utf-8') # Print the output line by line as it is generated for line in process.stdout: