summaryrefslogtreecommitdiff
path: root/Master/bin/win32/asy.bat
diff options
context:
space:
mode:
Diffstat (limited to 'Master/bin/win32/asy.bat')
-rwxr-xr-xMaster/bin/win32/asy.bat3
1 files changed, 2 insertions, 1 deletions
diff --git a/Master/bin/win32/asy.bat b/Master/bin/win32/asy.bat
index b6c88ce7ab3..0f953f5eff3 100755
--- a/Master/bin/win32/asy.bat
+++ b/Master/bin/win32/asy.bat
@@ -6,7 +6,8 @@ rem Public Domain
setlocal enableextensions
rem Get TL installation root (it should be two levels up)
-for %%I in ("%~dp0\..\..") do (set TLROOT=%%~fI)
+rem Use short path, because of problems with spaces and calling batch files
+for %%I in ("%~dp0\..\..") do (set TLROOT=%%~sfI)
rem Add gs and bin dir to PATH
path %TLROOT%\tlpkg\tlgs\bin;%TLROOT%\bin\win32;%PATH%
set GS_LIB=%TLROOT%\tlpkg\tlgs\lib;%TLROOT%\tlpkg\tlgs\fonts