summaryrefslogtreecommitdiff
path: root/Master/bin/win32
diff options
context:
space:
mode:
Diffstat (limited to 'Master/bin/win32')
-rw-r--r--Master/bin/win32/dviout.vbs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Master/bin/win32/dviout.vbs b/Master/bin/win32/dviout.vbs
index 6b33236a32d..3c271499cd5 100644
--- a/Master/bin/win32/dviout.vbs
+++ b/Master/bin/win32/dviout.vbs
@@ -34,12 +34,17 @@ If InStr(sTL, " ") <> 0 Then
sTL = oTL.ShortPath
End If
+'strip trailing "\"
+If Right(sTL,1) = "\" Then
+ sTL = Left(sTL,Len(sTL)-1)
+End If
+
' Ghostscript environment settings
sGS = sTL & "\tlpkg\tlgs"
oEnv("PATH") = sGS & "\bin;" & oEnv("PATH")
oEnv("GS_LIB") = sGS & "\fonts;" & sGS & "\lib;" & sGS & "\Resource"
-sCmd = sTL & "tlpkg\dviout\dviout.exe -TEXROOT="
+sCmd = sTL & "\tlpkg\dviout\dviout.exe -TEXROOT="
'add font trees to command-Line