Dear Siep Kroonenberg,
If you need values of variables setenved in the current
process, please initialize kpse and use kpse.var_value().
FYI, os.getenv() is defined in the lua52.dll and os.setenv()
is defined in the texlua.
I have
ThisIsTheValue
ThisIsTheValue
by
texlua curr.tlu
Here curr.tlu and child.tlu are
-- curr.tlu
kpse.set_program_name('test')
os.setenv('XXXYYY', 'ThisIsTheValue')
print(kpse.var_value('XXXYYY'))
os.execute('texlua child.tlu')
-- child.tlu
print(os.getenv('XXXYYY'))
Thanks,
Akira