[Paraview] Python shell, os.environ

Heiland, Randy heiland at iu.edu
Wed Dec 20 16:30:55 EST 2017


I noticed the Python shell has a very limited os.environ, e.g.:
>>> os.environ
{'SHELL': '/bin/bash', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.y86uYmHWFV/Listeners', 'XPC_FLAGS': '0x0', '__CF_USER_TEXT_ENCODING': '0x1F5:0x0:0x0', 'Apple_PubSub_Socket_Render': '/private/tmp/com.apple.launchd.CM4C6EMoE6/Render', 'LOGNAME': 'heiland', 'USER': 'heiland', 'XPC_SERVICE_NAME': 'org.paraview.ParaView.33336', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/Users/heiland', 'DISPLAY': '/private/tmp/com.apple.launchd.4ORv1l0yeN/org.macosforge.xquartz:0', 'TMPDIR': '/var/folders/l6/s467rzgs75n91gdbkn7vr0f40000gn/T/'}
>>> 

I’m guessing this is a security measure? Anyway, is there any way one can use an env var to pass in desirable info to PV’s Python, e.g., a dir path to data to be read by a Programmable Source? Or perhaps there’s some other entirely different way to do this?

thanks, Randy


More information about the ParaView mailing list