environment edit not pass in python?

   2051   1   1
User Avatar
Member
5 posts
Joined: Feb. 2015
Offline
Hi,

In your example, you pass environment to python script but it did not work for me.

clement
Edited by Clément HECTOR - March 26, 2019 06:03:00

Attachments:
envtest.hip (45.5 KB)

User Avatar
Member
603 posts
Joined: Sept. 2016
Offline
The environmentedit node exports env vars to the task's process environment if the task is executed in a new process Your pythonscript is set to evaluate ‘in process’, which means it will execute in the current Houdini process, and therefore
os.getenv
will only find the env vars set in the current Houdini process.
  • Quick Links