Re: replacement for __file__ in compiled exe

2009-01-05 Thread TechieInsights
Yes, that is my exact question. How do you get the file path of your script/program. Normally in python you can use __file__ and it will return the file path of the script you are in, however, when you compile the script to exe py2exe (or whatever util you are using) compresses them into a zip fo

Re: replacement for __file__ in compiled exe

2009-01-05 Thread John Machin
On Jan 6, 7:03 am, TechieInsights wrote: > __file__ command does not work when compiled to exe.  It makes since > because the file is now in a compressed library.  Is there a > replacement or something else you can do?  The real problem is that > when you create an exe of your program with python

replacement for __file__ in compiled exe

2009-01-05 Thread TechieInsights
__file__ command does not work when compiled to exe. It makes since because the file is now in a compressed library. Is there a replacement or something else you can do? The real problem is that when you create an exe of your program with python embedded, you can't always guarantee that your cur