On Wed, Apr 15, 2020 at 09:54:47PM +0100, Richard W.M. Jones wrote:
Yes we can do it once in .get_ready, to add tmpdir (which never changes). If we need to add further environment variables that change on each script invocation then we'd do it a second time in the function.
It's fine to do it in .get_ready because we would still store it in a char **env variable, rather than updating the global environ or calling setenv.
Actually, I mean do it in .load, but still instead of calling setenv we'd update a global char **env variable. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW