def getExecutingfile():
    exFile=namedtuple("filePath","path, file")
    path=None
    name=None
    frame=sys._getframe(1)
    fil=frame.f_code.co_filename
    path,name=os.path.split(fil)

    return exFile(path,name)



thats the code I am running  in a util.py file that is called by core.py
in core.py is where it seems to get hard coded to the path I have things
sourced from




On Fri, May 26, 2017 at 10:02 PM, Justin Israel <[email protected]>
wrote:

>
>
> On Sat, May 27, 2017, 3:12 PM Todd Widup <[email protected]> wrote:
>
>> so I have a few tools I gave over to a friend..gave them the PYC files.
>>
>> part of what one of the tools does is get the directory path it was
>> executed from to pass along.
>>
>> anyways, my friend that was running it, kept getting some errors about a
>> path not existing...strange thing was, it was showing the path where I have
>> the tools on my local machine, not where he has them.
>>
>> so...do PYC files store info like that?  I always thought it was strictly
>> a compiled version of the py file, with nothing else
>>
>
>
> Do you have an example of what kind of code was returning a cached result
> from when the pyc was generated?
>
>
>> --
>> Todd Widup
>> Creature TD / Technical Artist
>> [email protected]
>>
>> --
>> 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/CABBPk36XUNP2PqWnGaq5wgRdrQH%
>> 3DgmYf_v%2BmLQi171VbFS5-GA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CABBPk36XUNP2PqWnGaq5wgRdrQH%3DgmYf_v%2BmLQi171VbFS5-GA%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/CAPGFgA1NzFWJ5o1%3DAFqK1mc%2Bsf%3DETiw8-s_
> zt3pZt2rWbJKR2w%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1NzFWJ5o1%3DAFqK1mc%2Bsf%3DETiw8-s_zt3pZt2rWbJKR2w%40mail.gmail.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]

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

Reply via email to