Add enviroment variable for python with batch
Question: ## **Short question:**

How would I append a environment python variable with a bath 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 Maya python script pipeline. 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** \-
starts up with Maya.

X:\RandomPath\Scripts\ **scriptWantToCallFromUserSetup1.py**

X:\RandomPath\Scripts\ **scriptWantToCallFromUserSetup2.py**


Answer: 
    set PYTHONPATH=X:\RandomPath\Scripts
    

Whatever is in `PYTHONPATH` will be added to `sys.path` when Python starts.

