summaryrefslogtreecommitdiff
path: root/Master/bin
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-03-10 03:48:22 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-03-10 03:48:22 +0000
commitef59fa784aa0569d24b6ba6cba07188513c633c4 (patch)
tree4d6047a402b28bd7985cf258b7503c1e4fa71899 /Master/bin
parent25066a0b31ed8dacc5ce8351b5993a35db38f6c5 (diff)
search for scripts only in the system tree in w32_wrapper, thanks to Joseph.
git-svn-id: svn://tug.org/texlive/trunk@46914 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin')
-rwxr-xr-xMaster/bin/win32/runscript.tlu2
1 files changed, 2 insertions, 0 deletions
diff --git a/Master/bin/win32/runscript.tlu b/Master/bin/win32/runscript.tlu
index 285817f7fca..f0e1025d520 100755
--- a/Master/bin/win32/runscript.tlu
+++ b/Master/bin/win32/runscript.tlu
@@ -683,9 +683,11 @@ end
-- general case
if not ARGV then
+ os.setenv('TEXMF', TEXMFDIST)
local extlist = '.tlu;.texlua;.lua;.pl;.rb;.py;.tcl;.jar;.vbs;.js;.bat;.cmd;\0'
local progfullname = search_path(progname, BINDIR, '.tlu;.bat;.cmd') or
assert(find_texmfscript(progname, extlist))
+ os.setenv('TEXMF', nil)
local ext = string.match(string.lower(progfullname), '%.[^\\/.]*$') or ''
if (ext == '.lua') or (ext == '.tlu') or (ext == '.texlua') then -- lua script
arg[0] = progfullname