Short question:
How would I append an environment Python variable with a batch script? I want do the equal to:
import sys
sys.path.append( 'E:\whatever\locallyScriptFolder' )
but with a batch file? I'm a batch noob.
Longer pipeline question:
I need to setup a Python script pipeline in Maya. All the scripts are in our Perforce
folder. Here are also the .bat
file which copy the userSetup.py
to the users local drive. This userSetup.py
executes when Maya starts. From where I want to start script from the Perforce
folder, but this folder have a different path for every user (some has it on the E drive and so on). What would be the best way to be able to get those scripts? Is it to append a environment variable?
Example:
C:\Users\nameOnUser\Documents\maya\2014-x64\scripts\ **userSetup.py**
X:\RandomPath\Scripts\ **scriptWantToCallFromUserSetup1.py**
X:\RandomPath\Scripts\ **scriptWantToCallFromUserSetup2.py**