From d6639e690bcb3e61cf321e5a456a018fe346e088 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sat, 11 Feb 2023 09:10:07 -0800 Subject: [PATCH] windows: use specific python3.9.exe --- docker/install-scrypted-dependencies-win.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/install-scrypted-dependencies-win.ps1 b/docker/install-scrypted-dependencies-win.ps1 index a2bd2b915..b8151cebb 100644 --- a/docker/install-scrypted-dependencies-win.ps1 +++ b/docker/install-scrypted-dependencies-win.ps1 @@ -12,6 +12,7 @@ choco upgrade -y nodejs-lts --version=18.14.0 # Install Python choco upgrade -y python39 +$SCRYPTED_PYTHON_PATH = (get-command python3.9.exe).Path # Refresh environment variables for py and npx to work $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") @@ -59,7 +60,7 @@ const svc = new Service({ }, { name: "SCRYPTED_PYTHON_PATH", - value: "python3.9.exe", + value: "$($SCRYPTED_PYTHON_PATH)", } ] });