diff options
author | Norbert Preining <preining@logic.at> | 2009-01-20 22:24:51 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2009-01-20 22:24:51 +0000 |
commit | bb352c6b2e790c028e288b0ea724283f6b9af196 (patch) | |
tree | 43b61cf49055fb409ae9f88b86869bb9dfc352a1 /Master/texmf | |
parent | 1fe3b1740639431afffaaba509568a54b7b39759 (diff) |
fix path setting in tlmgr.pl and .bat
git-svn-id: svn://tug.org/texlive/trunk@11933 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf')
-rwxr-xr-x | Master/texmf/scripts/texlive/tlmgr.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index 52d6ed44fda..272d091de9f 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -35,7 +35,11 @@ BEGIN { $^W = 1; # make subprograms (including kpsewhich) have the right path: ($mydir = $0) =~ s,/[^/]*$,,; - $ENV{"PATH"} = "$mydir:$ENV{PATH}"; + if ($^O=~/^MSWin(32|64)$/i) { + $ENV{"PATH"} = "$mydir;$ENV{PATH}"; + } else { + $ENV{"PATH"} = "$mydir:$ENV{PATH}"; + } # chomp($Master = `kpsewhich -var-value=SELFAUTOPARENT`); # |