From d613e9bfb834ae80bd4bdf9acf43c1b48c3d60b4 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Mon, 1 May 2023 22:39:41 +0200 Subject: [PATCH 1/4] Do not pass back environment to calling program --- setup.bat | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.bat b/setup.bat index 890f8b0..cde5720 100644 --- a/setup.bat +++ b/setup.bat @@ -1,4 +1,5 @@ @echo off +setlocal REM Change python whatever set pyexe=python34\python.exe From f085126aa50c4443746a95eb08279402d5a3ff3d Mon Sep 17 00:00:00 2001 From: Fierelier Date: Mon, 1 May 2023 22:39:55 +0200 Subject: [PATCH 2/4] Change working directory to script path --- setup.bat | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.bat b/setup.bat index cde5720..291ad96 100644 --- a/setup.bat +++ b/setup.bat @@ -1,5 +1,6 @@ @echo off setlocal +cd /d "%~dp0" REM Change python whatever set pyexe=python34\python.exe From 8cc9228cebec40a2bdb81de04554cf59bf317568 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Mon, 1 May 2023 22:40:43 +0200 Subject: [PATCH 3/4] Quote environment variables --- setup.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.bat b/setup.bat index 291ad96..1b441d6 100644 --- a/setup.bat +++ b/setup.bat @@ -3,10 +3,10 @@ setlocal cd /d "%~dp0" REM Change python whatever -set pyexe=python34\python.exe +set "pyexe=python34\python.exe" REM The list of packages this thing requires (maybe?) -set packages=requests colorama==0.4.1 websocket-client toml readchar win-unicode-console +set "packages=requests colorama==0.4.1 websocket-client toml readchar win-unicode-console" REM Actually install the packages... maybe? %pyexe% -m pip install %packages% \ No newline at end of file From e0148f9c8bada4ea3dcb23e591ecd62b6999e24f Mon Sep 17 00:00:00 2001 From: Fierelier Date: Mon, 1 May 2023 22:42:15 +0200 Subject: [PATCH 4/4] Use quotes for executable path --- setup.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.bat b/setup.bat index 1b441d6..9295dac 100644 --- a/setup.bat +++ b/setup.bat @@ -9,4 +9,4 @@ REM The list of packages this thing requires (maybe?) set "packages=requests colorama==0.4.1 websocket-client toml readchar win-unicode-console" REM Actually install the packages... maybe? -%pyexe% -m pip install %packages% \ No newline at end of file +"%pyexe%" -m pip install %packages%