On Sat, 2 Apr 2016 12:56 PM Crest Christopher <[email protected]>
wrote:

> That wasn't the case when the Python Module path was in my system
> environment variable; I didn't need to have all my Python Maya scripts in
> the Python Modules path location ?
>
> Here is the absolute path for all my python scripts, same absolute path as
> listed in the Maya.env file for PYTHONPATH.
>
> C:\Custom Program Settings\Maya_Resources\pythonscript
>

You can either set your PYTHONPATH from the Maya.env or the userSetup.mel
If you add your custom scripts location to the sys.path in your
userSetup.mel, does it then succeed in importing your script?

If not, go into the script editor and run:

print '\n'.join(sys.path)

And show us the results of that

>
> Justin Israel <[email protected]>
> Friday, April 01, 2016 7:49 PM
>
> Yes it would work as long as your scripts are in that site packages
> location. What is the absolute path to your script?
>
> --
> 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/CzEXgn-GIaI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
>
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3AvNa-k%3DJ5em7QATNpTqJihSLJkgVDsbSgg4iRrfnX4Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3AvNa-k%3DJ5em7QATNpTqJihSLJkgVDsbSgg4iRrfnX4Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> For more options, visit https://groups.google.com/d/optout.
>
> Crest Christopher <[email protected]>
> Friday, April 01, 2016 6:08 PM
>
> I don't know what else to explain. Have I missed a piece of information
> you want ?
>
>
> Justin Israel <[email protected]>
> Friday, April 01, 2016 4:26 PM
>
> Let's just cut to the chase and you tell me where your scripts *are*
> located?
> Obviously your standard environment has those locations in the PYTHONPATH
> and Maya's env does not.
>
> It isn't a complicated concept. If you add the locationa of your scripts
> and dependencies to the sys.path in Maya, then you should be able to import
> your scripts
>
> --
> 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/CzEXgn-GIaI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2FDNvxBZLYWDQ8RPxRiGAbV8o2bxR9j6HV50CeLfjcVg%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2FDNvxBZLYWDQ8RPxRiGAbV8o2bxR9j6HV50CeLfjcVg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
> Crest Christopher <[email protected]>
> Friday, April 01, 2016 4:20 PM
> No.
>
> When I had a system environment variable set for Python modules, I didn't
> have all the Python scripts in the Python modules path and the scripts
> worked perfectly.
>
> Justin Israel wrote:
> Justin Israel <[email protected]>
> Friday, April 01, 2016 3:06 PM
> Are you python scripts inside that location?
>
> --
> 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/CzEXgn-GIaI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1N%3Dh7iG8hd6JMUosF%3DUQJruTaXQPo5LpZMhz2v6ywyNQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1N%3Dh7iG8hd6JMUosF%3DUQJruTaXQPo5LpZMhz2v6ywyNQ%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/56FF0A9F.20904%40gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/56FF0A9F.20904%40gmail.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/CAPGFgA3ZgKmbc4W3rBYoU4Zc8k5Ap2pejAGw2W6GWVYjyhEA%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to