thanks guys...was looking all of stackoverflow this weekend and couldn't
find anything with a search, much appreciated


On Mon, Jun 1, 2015 at 9:54 AM, Brennan Chapman <[email protected]>
wrote:

> Take a look at sys.executable
> Returns the path to the python executable.
>
> On mac I get this from mayapy:
>
> '/Applications/Autodesk/maya2015/Maya.app/Contents/bin/../Frameworks/Python.framework/Versions/Current/Resources/Python.app/Contents/MacOS/Python’
>
> compared to running straight python:
> '/usr/local/opt/python/bin/python2.7'
>
>
> import sys
> print sys.executable
>
>
>
> *--*
>
>
>
> Brennan Chapman
> Lead Pipeline Developer
> T: (318) 213-0770
>
>
>
>
> On Jun 1, 2015, at 11:33 AM, Todd Widup <[email protected]> wrote:
>
> is there a way to find out what program called the python script that is
> running?
>
> IE, if its running in Maya, Soft, Houdini, idle, or something else even.
>
> thanks
> -todd
>
> --
> Todd Widup
> Creature TD / Technical Artist
> [email protected]
> [email protected]
> www.toddwidup.com
>
> --
> 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/CABBPk361T%2BE%2BMyP4VGnz-Xv%2B3b_ONDpCTJSmw7TDJ%3D5FwEuS8g%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CABBPk361T%2BE%2BMyP4VGnz-Xv%2B3b_ONDpCTJSmw7TDJ%3D5FwEuS8g%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/98B190CB-167E-4EE2-AD78-AF352485A815%40moonbotstudios.com
> <https://groups.google.com/d/msgid/python_inside_maya/98B190CB-167E-4EE2-AD78-AF352485A815%40moonbotstudios.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Todd Widup
Creature TD / Technical Artist
[email protected]
[email protected]
www.toddwidup.com

-- 
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/CABBPk36n%3DzgNM8gMFWc0y6WhCNYsd5a94R4MaX%3Dgrgm2L4Yrvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to