what are the exact results you get when running the following:

at a shell:

echo `which ipython`
echo `which ipymel`
echo `which mayapy`



from a mayapy session:

import IPython



On Apr 21, 2009, at 6:47 AM, davegreenwood wrote:

>
> Hi, first sorry if my mail appears twice, this is my second sending,
> but I'm not sure if messages are moderated?
>
> Anyway, I'm experiencing the same problem. I'm happy that my paths are
> set correctly, if I type:
>
> /usr/bin/env mayapy
>
> I get a mayapy session, and also I can import pymel.
>
> As in the first post, what isn't working is just the ipymel script. I
> tried changing the first line of
> ipymel to:
>
> #!$MAYA_LOCATION/bin/mayapy
>
> but nothing changed. I did notice that I only had one (long) line in
> that file, I'm not sure that is how it should be?
>
> Anyway, I'd love to get this going.
>
> Thanks in advance for any help.
>
> Dave.
>
>
> On Apr 13, 8:36 pm, Chadrik <[email protected]> wrote:
>> It looks like the script is being interpreted as a shell script
>> instead of a python script.  The very first line of tools/bin/ipymel
>> is a fancy way of informing the system what executable to use to
>> interpret the script:
>>
>> #!/usr/bin/env mayapy
>>
>> the reason i say it's "fancy" is because usually the path is hard-
>> coded to the location of the python binary, or in our case mayapy.
>> mayapy is not guaranteed to be in any one location on all systems so
>> I'm using the executable 'evn' to determine where to find the  
>> 'mayapy'
>> executable.
>>
>> if you open a new shell and type the following, it should start a
>> mayapy session:
>>
>> /usr/bin/env mayapy
>>
>> Let me know if that does not work.  Also, I just realized that there
>> is a much simpler way to do this.  replace the first line of ipymel
>> with the following
>>
>> #!$MAYA_LOCATION/bin/mayapy
>>
>> and just to make sure we're clear, to launch ipymel -- once its setup
>> properly -- all you need to do is type:
>>
>> ipymel
>>
>> -chad
>
> >


--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to