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