I haven't figured out a way to do this but see no reason why it cannot be
done. I have a decent size application written in 100% Python. I would
like to distribute this application, but only the .pyc files. Since the
.pyc's are just the compiled sources I figured it would work, but if I copy
ju
file
resides. That is, when I type: python MyApp.py, I want to know in which
directory does MyApp.py reside?
Thanks,
Ron
Rick Dooling-2 wrote:
>
> On Dec 11, 10:08 am, "ron.longo" <[EMAIL PROTECTED]> wrote:
>> Is there any way that I can find the path of the m
Is there any way that I can find the path of the main .py file of my
application?
For example, I have an application with some resources which are in a
subdirectory:
myPythonApp.py
/resources
image1
image2
etc.
If i just do a call to os.getcwd() I get back