Re: [Maya-Python] where is does maya source the python scripts from.

2017-09-10 Thread jettam
I made a userSetup.mel file, and placed it here: 
 C:\Users\justin\Documents\maya\2017\scripts\userSetup.mel
In this file I added this text: 

*import sys*
*sys.path.insert(0, "E:/ProfessionalDevelopment/python/Introduction to 
Python Scripting in Maya/cgcircuitPython") *

Should this work? When maya launches will it add this custom path to my 
sys.path?   I ask because when maya opens I check to see if its there by 
typing *import sys*and   *pprint(sys.path). *When I type this I 
don't see my custom path in the name.

>
>>

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/6d6fabb1-a13b-4225-91b9-4dca18cf8a01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] where is does maya source the python scripts from.

2017-09-10 Thread Robert White
Try that with a userSetup.py instead of .mel. Otherwise, yes that should 
work.

On Sunday, September 10, 2017 at 7:49:40 PM UTC-5, jettam wrote:
>
> I made a userSetup.mel file, and placed it here: 
>  C:\Users\justin\Documents\maya\2017\scripts\userSetup.mel
> In this file I added this text: 
>
> *import sys*
> *sys.path.insert(0, "E:/ProfessionalDevelopment/python/Introduction to 
> Python Scripting in Maya/cgcircuitPython") *
>
> Should this work? When maya launches will it add this custom path to my 
> sys.path?   I ask because when maya opens I check to see if its there by 
> typing *import sys*and   *pprint(sys.path). *When I type this I 
> don't see my custom path in the name.
>
>>
>>>

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/741d23c0-3c84-4d1f-8a93-da491f116400%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.