Andrei B wrote:
> I need to get absolute path name of a file that's in the same dir as
> the exe, however the Current Working Directory is changed to somthing
> else.
>
Use sys.path[0]
--
http://mail.python.org/mailman/listinfo/python-list
try,
if hasattr(sys, 'frozen'): me = sys.executable
else: me = sys.argv[0]
--
http://mail.python.org/mailman/listinfo/python-list
I need to get absolute path name of a file that's in the same dir as
the exe, however the Current Working Directory is changed to somthing
else.
I turn my script into an executable with py2exe, then I create a
shortcut to the EXE on the desktop. I change the "Start In" variable of
the shortcut "C: