summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/data-ini.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/data-ini.lua')
-rw-r--r--tex/context/base/mkiv/data-ini.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/data-ini.lua b/tex/context/base/mkiv/data-ini.lua
index 2e9010085..3c1531019 100644
--- a/tex/context/base/mkiv/data-ini.lua
+++ b/tex/context/base/mkiv/data-ini.lua
@@ -75,6 +75,7 @@ end
do
+ local oldhome = osgetenv('HOME')
local homedir = osgetenv(ostype == "windows" and 'USERPROFILE' or 'HOME') or ''
if not homedir or homedir == "" then
@@ -86,6 +87,7 @@ do
ossetenv("HOME", homedir) -- can be used in unix cnf files
ossetenv("USERPROFILE",homedir) -- can be used in windows cnf files
+ environment.oldhome = oldhome
environment.homedir = homedir
end