I don't know what else to explain. Have I missed a piece of information
you want ?
Justin Israel <mailto:[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]
<mailto:[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 <mailto:[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 <mailto:[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]
<mailto:[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.
Christopher. <mailto:[email protected]>
Friday, April 01, 2016 3:04 PM
The userSetup.mel file is located in; C:\<custom folder>\<custom
folder>\Preferences\2015-x64\scripts
Since I never had a userSetup.mel file; the following is the only line
within: python("import
sys;sys.path.append('C:\Python27\Lib\site-packages');
When restarting Maya, all Python scripts don't work, the Python
modules continue not to be found ?
On Wednesday, March 30, 2016 at 3:41:38 PM UTC-4, Christopher. wrote:
--
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]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/360602d4-c5b4-4273-bf75-02a6be2cb1d4%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/360602d4-c5b4-4273-bf75-02a6be2cb1d4%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
Christopher. <mailto:[email protected]>
Wednesday, March 30, 2016 3:41 PM
I meant, /what we all know/, in other words, if scripts can't find
python modules, /most/ of the time they won't execute.
All python scripts are relying on Python modules, as I mentioned I had
the Python module path in my system environment variable; but since
deleted it from my system environment variable. Prior to deleting the
path, any and all Python scripts in my custom path would work,
thereafter deletion of the path from my system environment variable,
they stopped working.
Geordie mentioned to put the script path as he posted, rather then in
my system environment variable into a userSetup.mel file then those
modules would load and hopefully all my python scripts would begin
working, once again; up to this point, that is not the case and I'd
like to know what I'm doing wrong or what has become tangled so to speak ?
On Wednesday, March 30, 2016 at 3:11:31 PM UTC-4, Justin Israel wrote:
--
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]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/39e7a01d-bbee-41a5-9bd3-bff14f1fa874%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/39e7a01d-bbee-41a5-9bd3-bff14f1fa874%40googlegroups.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/56FEF162.2060108%40gmail.com.
For more options, visit https://groups.google.com/d/optout.