[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Requesting help with C extension
- From: Simon Wunderlin <swunderlin@...>
- Date: Fri, 20 Jul 2018 09:49:25 +0200
On 07/20/2018 09:20 AM, pocomane wrote:
Maybe a bit offtopic, but...
If you want to set env variables, probably you also want to spawn
sub-process, and maybe read/write its output/input. Luachild 
module can do all of this for you, and nothing else. It is "Minimal"
code extracted from the Ex module of LuaDist. It uses setenv for
setting variables, or SetEnvironmentVariable on windows.
Moreover, there are some alternatives listed in the readme.
 https://github.com/pocomane/luachild - MIT license - Credit to the
original author, Mark Edgar.
You have guessed correctly, you code is much appreciated!