From 08aeb80f58a823f441abdecceefd7eab33b62df2 Mon Sep 17 00:00:00 2001 From: Stinkfist0 Date: Thu, 2 Jun 2016 14:39:29 +0300 Subject: [PATCH] Make set-python-to-path.bat callable from outside locations --- win/set-python-to-path.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/win/set-python-to-path.bat b/win/set-python-to-path.bat index b9f225be7a..b40e46913c 100644 --- a/win/set-python-to-path.bat +++ b/win/set-python-to-path.bat @@ -22,11 +22,11 @@ @echo off set TARGET_ARCH=%1 if "%TARGET_ARCH%"=="" set TARGET_ARCH=x64 -if not exist BuildDepsCache-%TARGET_ARCH%.txt. ( - echo BuildDepsCache-%TARGET_ARCH%.txt does not exist +if not exist %~dp0BuildDepsCache-%TARGET_ARCH%.txt. ( + echo %~dp0BuildDepsCache-%TARGET_ARCH%.txt does not exist goto :EOF ) -for /f "delims== tokens=1,2" %%G in (BuildDepsCache-%TARGET_ARCH%.txt) do set %%G=%%H +for /f "delims== tokens=1,2" %%G in (%~dp0BuildDepsCache-%TARGET_ARCH%.txt) do set %%G=%%H if not defined PYTHONHOME ( echo PYTHONHOME PYTHONHOME not defined goto :EOF