Python Shell and PythonSOP produce different results
864
2
2
tas3d
Member
120 posts
Joined: Jan. 2012
Offline
March 29, 2021 2:56 p.m.
Hi,
When I type this in Python Shell
>>> print '$HIP'
>>> '$HIP'
When I do the same thing in PythonSOP, string gets expanded. Why?!
>>> print '$HIP'
>>> C : / blabla
How can I avoid string expansion in PythonSOP?
Thank you
Edited by tas3d - March 29, 2021 14:57:14
Michal Tas Maciejewski @
www.vfxtricks.com
krueger
Member
191 posts
Joined: Oct. 2018
Offline
March 29, 2021 4:40 p.m.
I'm just guessing the python sop already has access to environment variables while the shell doesn't. You can get around it evaluating though if you type:
tas3d
Member
120 posts
Joined: Jan. 2012
Offline
March 29, 2021 6:22 p.m.
Thanks! Those special characters always causing trouble
Michal Tas Maciejewski @
www.vfxtricks.com