kanenas
01-12-2013, 09:02 PM
Hello.
This is a 2-part question (that might be related to my problem).
1)
Could anybody possibly guess why this script refuses to run?
This is for Maya 2012 SP2 (and 2013 SP2) x64 under Windows 7.
I recreated the Maya.env after some installer trashed it and somehow I can't get this script to run anymore.
The only relevant line in Maya.env is:
PYTHONPATH=c:/Users/Terry/Documents/maya/2012-x64/scripts/Python/userSetup_configs
(inside this folder I have the userSetup.py).
userSetup.py blanks PYTHONPATH, adds a couple of custom entries, and loops/adds some folders that I specify in two system environment variables.
Everything loads up fine, PYTHONPATH and sys.path are initialized, but the folders in them are the standard ones added normally. None of the ones in userSetup.py shows up.
By the way, there are no other userSetup.py files anywhere in the computer.
2)
There are references all over about appending entries to PYTHONPATH in Maya.env like so:
PYTHONPATH=%PYTHONPATH%;some folders;another folder
In my system %PYTHONPATH% doesn't get expanded anymore (I'm almost sure it was working before).
If I do a getenv on it within Maya, I get the line unchanged:
%PYTHONPATH%;some folders;another folder
It looks like either some script processor is misbehaving or you just cannot modify this variable in Maya.env. Come to think of it, don't system environment variables have priority over Maya.env (except 4-5 Maya variables maybe)?
Thanks in advance for any suggestions.
This is a 2-part question (that might be related to my problem).
1)
Could anybody possibly guess why this script refuses to run?
This is for Maya 2012 SP2 (and 2013 SP2) x64 under Windows 7.
I recreated the Maya.env after some installer trashed it and somehow I can't get this script to run anymore.
The only relevant line in Maya.env is:
PYTHONPATH=c:/Users/Terry/Documents/maya/2012-x64/scripts/Python/userSetup_configs
(inside this folder I have the userSetup.py).
userSetup.py blanks PYTHONPATH, adds a couple of custom entries, and loops/adds some folders that I specify in two system environment variables.
Everything loads up fine, PYTHONPATH and sys.path are initialized, but the folders in them are the standard ones added normally. None of the ones in userSetup.py shows up.
By the way, there are no other userSetup.py files anywhere in the computer.
2)
There are references all over about appending entries to PYTHONPATH in Maya.env like so:
PYTHONPATH=%PYTHONPATH%;some folders;another folder
In my system %PYTHONPATH% doesn't get expanded anymore (I'm almost sure it was working before).
If I do a getenv on it within Maya, I get the line unchanged:
%PYTHONPATH%;some folders;another folder
It looks like either some script processor is misbehaving or you just cannot modify this variable in Maya.env. Come to think of it, don't system environment variables have priority over Maya.env (except 4-5 Maya variables maybe)?
Thanks in advance for any suggestions.
