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
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
__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