diff options
Diffstat (limited to 'Master/bin/win32/psv.bat')
-rwxr-xr-x | Master/bin/win32/psv.bat | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/bin/win32/psv.bat b/Master/bin/win32/psv.bat index 9e407d1e022..e58f142ddb9 100755 --- a/Master/bin/win32/psv.bat +++ b/Master/bin/win32/psv.bat @@ -3,8 +3,9 @@ rem Launcher script for PSV rem Make environment changes local
setlocal enableextensions
-rem Get TL root (should be two levels up)
-for %%I in ("%~dp0..\..") do (set tlroot=%%~fI)
+rem Get TL installation root (w/o trailing backslash)
+set tlroot=%~dp0:
+set tlroot=%tlroot:\bin\win32\:=%
rem Use provided GS
set GS_LIB=%tlroot%\tlpkg\tlgs\lib;%tlroot%\tlpkg\tlgs\fonts
set GS_DLL=%tlroot%\tlpkg\tlgs\bin\gsdll32.dll
|