diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-03-13 05:42:02 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-03-13 05:42:02 +0000 |
commit | 1f5ab53c9f1eb38fa38f1aff40bc2b8c78e9ebd6 (patch) | |
tree | 1c003178716b04421214cf8fd1507fc319c21802 /Master/bin/win32/runscript.tlu | |
parent | 0861072d91bdb856d6da4a097fcc642607835827 (diff) |
Update some binaries (w32 tl18 pretest)
git-svn-id: svn://tug.org/texlive/trunk@46945 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/win32/runscript.tlu')
-rwxr-xr-x | Master/bin/win32/runscript.tlu | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Master/bin/win32/runscript.tlu b/Master/bin/win32/runscript.tlu index 65d064114cf..1c091ffc249 100755 --- a/Master/bin/win32/runscript.tlu +++ b/Master/bin/win32/runscript.tlu @@ -405,7 +405,7 @@ local function gettexmfdist() return nil end local err = ffi.C.GetModuleFileNameA(runscripthandle, buffer, 256) - if err == nil then + if err == 0 then return nil end local str = ffi.string(buffer) @@ -515,6 +515,9 @@ local TEXDIR = kpse.var_value('SELFAUTOPARENT') -- local TEXMFDIST = kpse.var_value('TEXMFDIST') -- use a new function to obtain TEXMFDIST local TEXMFDIST = gettexmfdist() +if TEXMFDIST == nil then + TEXMFDIST = kpse.var_value('TEXMFDIST') +end local BINDIR = kpse.var_value('SELFAUTOLOC') local PATH = os.getenv('PATH') or '' |