You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should each of the rez scripts attempt to keep a cleaner environment? There are a couple of python command line flags that could be added to the shebang line that would keep it cleaner.
-s - Don't add the user site-packages directory to sys.path. The user site-package directory is in the users home directory. The directory path is different based on the platform. This directory is a site directory, which means that .pth files in it will be processed. This could easily add other python libraries into the rez python environment and could be different for each user.
-P - Don’t prepend a potentially unsafe path to sys.path. In the case of rez that would be the directory where the rez python scripts are installed. This was added in Python 3.11. An install time check to see if the python interpreter supports the -P flag would be if hasattr(sys.flags, 'safe_path')
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Should each of the rez scripts attempt to keep a cleaner environment? There are a couple of python command line flags that could be added to the shebang line that would keep it cleaner.
-s- Don't add the user site-packages directory tosys.path. The user site-package directory is in the users home directory. The directory path is different based on the platform. This directory is a site directory, which means that.pthfiles in it will be processed. This could easily add other python libraries into the rez python environment and could be different for each user.-P- Don’t prepend a potentially unsafe path tosys.path. In the case of rez that would be the directory where the rez python scripts are installed. This was added in Python 3.11. An install time check to see if the python interpreter supports the-Pflag would beif hasattr(sys.flags, 'safe_path')Beta Was this translation helpful? Give feedback.
All reactions