On Saturday, April 2, 2016 at 12:04:27 AM UTC-4, Justin Israel wrote:
>
>
>
> On Sat, 2 Apr 2016 4:52 PM Christopher. <[email protected] 
> <javascript:>> wrote:
>
>>
>>
>> On Friday, April 1, 2016 at 11:37:06 PM UTC-4, Justin Israel wrote:
>>
>>>
>>>
>>> On Sat, 2 Apr 2016 3:50 PM Christopher. <[email protected]> wrote:
>>>
>>>> There was extras related to other plug-ins I removed them and kept it 
>>>> to the relevant information to which the command spit out; hopefully this 
>>>> helps. 
>>>>
>>>> C:/Custom Program Settings/Maya_Resources/Preferences/2015-x64/scripts/
>>>>
>>>
>>> You are saying that this path is the only thing in your sys.path? that 
>>> can't be true. 
>>>
>>
>> The command you told me to enter in the script editor gave me numerous 
>> paths, mostly related to Maya plugins etc.  
>>
>
> I was hoping to just see the results so you could then answer if any of 
> those paths actually contain the python script you areare failing to import 
>

The results of the command show none of the paths which contain strictly my 
Python Scripts.
 

>
>
>> Sorry, what do you mean by sys.path, the only path in the userSetup.mel 
>> file or my system environment variable ? 
>>
>
> the result of printing that sys.path list and the thing you are appending 
> to in your userSetup.mel
>
>
>> I mentioned the MEL script path, just for some understanding on the file 
>> structure I have setup, to help understand.  
>>
>> As I mentioned, no one I've brought this issue to attention was able to 
>> solve, and I'v explained the situation as deep of an explanation as 
>> possible.  If you can solve, it would be a miracle; or anyone else for that 
>> matter. I must be trying to cure black magic or so it feels like.
>>
>
> the thing is. .. this is normally a pretty straight forward problem to 
> solve. You append your custom locations to sys.path and away you go. the 
> problem may be in the ability to communicate your problem and the ability 
> to apply the suggestions you receive 
>

If you knew the suggestions and how I explained the situation, to many 
you'd realize the frustration.  It's similar to explaining a problem to 
twenty different people which as I said I have, with such detail.  Anyway, 
the only paths to which the command is spitting out is the custom default 
maya scripts path, which is created from the MAYA_APP_DIR system 
environment variable, as I know and was also informed by others.
 

>
>
>>  
>>
>>>
>>>
>>>> I added the custom python scripts path to the userSetup.mel command as 
>>>> mentioned previously and no my scripts continue not to run. Not the custom 
>>>> scripts path, that is only where MEL scripts reside, rather the custom 
>>>> Python Script path as also in my Maya.env file as PYTHONPATH = "".
>>>>
>>>
>>> Why are we we talking about Mel in a python question? All I I wanted to 
>>> know was the absolute location of the python script that fails to import 
>>> for you, and the contents of your sys.path in Maya to see where it is 
>>> checking 
>>>
>>> This is like pulling teeth. 
>>>
>>>
>>>> On Friday, April 1, 2016 at 10:01:41 PM UTC-4, Justin Israel wrote:
>>>>
>>>>>
>>>>>
>>>>> 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
>>>>>> 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
>>>>>> 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
>>>>>> 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
>>>>>> 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
>>>>>> 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/6d106ea2-f86b-48ef-b1b6-20e2d9396014%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/python_inside_maya/6d106ea2-f86b-48ef-b1b6-20e2d9396014%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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/43128183-8c53-4ffd-a521-c15a9c0ae85d%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/python_inside_maya/43128183-8c53-4ffd-a521-c15a9c0ae85d%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/7645a17f-bd59-4cb7-838f-4d2424dd1e9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to