Re: [python-win32] cwd of program

2005-10-21 Thread le dahut
In fact I build an SFX archive with winrar where I specify a program to launch once extraction has ended. The program is launched but don't find it's sub-directory. If I go to the extracted archive directory an dlbe-clic on install.exe all runs fine, but whit winrar's Run after extraction option

Re: [python-win32] cwd of program

2005-10-21 Thread Andre Burgaud
Hi Le Dahut, I use the following code for prgrams built with py2exe: snip import sys import os print os.path.dirname(sys.executable) /snip This may work in your situation as well. Regards, Andre http://www.burgaud.com/ On 10/21/05, le dahut [EMAIL PROTECTED] wrote: In fact I build an SFX