summaryrefslogtreecommitdiff
path: root/Master/texmf
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf')
-rwxr-xr-xMaster/texmf/scripts/texlive/texconf.tlu3
1 files changed, 3 insertions, 0 deletions
diff --git a/Master/texmf/scripts/texlive/texconf.tlu b/Master/texmf/scripts/texlive/texconf.tlu
index db0a8ef2e4f..ff0b0cd7208 100755
--- a/Master/texmf/scripts/texlive/texconf.tlu
+++ b/Master/texmf/scripts/texlive/texconf.tlu
@@ -43,6 +43,9 @@ if (sys) then
texmfconfig=kpse.var_value('TEXMFSYSCONFIG')
else
texmfconfig=kpse.var_value('TEXMFCONFIG')
+ -- workaround for buggy(?) texlua, it does not expand ~
+ userprofile = os.getenv('USERPROFILE')
+ texmfconfig = string.gsub(texmfconfig, '^~', userprofile)
end