I have this system variable set, which defines my personal Maya application directory, from there my Maya.env file is read and that is where I set my environment variables for my paths, it's all in the documentation.

MAYA_APP_DIR
This variable defines your personal Maya application directory. This directory contains your projects and other important items:
the prefs directory
the projects directory
mayaRenderLog.txt
mayaLog
mayaJournal
the scripts directory
Maya.env, if you choose to create it, can also reside in this directory
You can only set MAYA_APP_DIR from the operating system; you cannot use Maya.env. If you set this variable in the Mac OS X operating system, you must launch Maya from the Terminal window. Otherwise, Maya will not use the set value.



Jesse Kretschmer wrote:


On Wed, Apr 22, 2015 at 1:59 AM, Anthony Tan
<[email protected] <mailto:[email protected]>> wrote:

I notice there's no user directory there, but you do have
something that approximates the structure in "C:/Custom Program
Settings/Maya_Resources/Preferences/scripts"


As Damon and Anthony have pointed out, there is a distinct lack of a
folder like "Users/Documents/maya". This makes me believe that you are
not operating in a "vanilla" windows environment. Someone else has
their hand in your cookie jar.

Just go ahead and run:
import sys
sys.path.append("X:/6")
import NSUV

At some point you should talk to whomever else might be touching your
configurations.
-jesse

--
You received this message because you are subscribed to a topic in the
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/python_inside_maya/bkJcnVhSI0Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
[email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CANESWi01j4mL-Yydv0eDFkf6L1ftC68oRvjmqXdvDANS-nRFRQ%40mail.gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CANESWi01j4mL-Yydv0eDFkf6L1ftC68oRvjmqXdvDANS-nRFRQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Python 
Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/5537AEB7.3060207%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to