Python application distribution

2008-05-01 Thread ron.longo
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

Re: finding dir of main .py file

2007-12-11 Thread ron.longo
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

finding dir of main .py file

2007-12-11 Thread ron.longo
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