From 1479ea36a4a1e459318b5a42444aefcacc9112f6 Mon Sep 17 00:00:00 2001 From: TSC <112517630+LucianoCirino@users.noreply.github.com> Date: Sun, 10 Sep 2023 17:35:08 -0500 Subject: [PATCH] updated when to use embedded --- tsc_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsc_utils.py b/tsc_utils.py index 94baacd..ef80f7a 100644 --- a/tsc_utils.py +++ b/tsc_utils.py @@ -484,7 +484,7 @@ def install_packages(my_dir): embedded_python_exe = os.path.abspath(os.path.join(my_dir, '..', '..', '..', 'python_embeded', 'python.exe')) # If embedded_python_exe exists, target the installations. Otherwise, go untargeted. - use_embedded = os.path.exists(embedded_python_exe) + use_embedded = os.path.exists(embedded_python_exe) and embedded_python_exe == sys.executable # Load packages from requirements.txt with open(os.path.join(my_dir, 'requirements.txt'), 'r') as f: