[python-win32] PythonWin - Start in script's directory

Gabriel Genellina gagenellina at softlab.com.ar
Tue Nov 22 19:37:49 CET 2005


At Tuesday 22/11/2005 15:14, Gregory Piñero wrote:

>And then is there a way to make Pythonwin run that automatically or do I 
>have to add that to my script:
>os.chdir(os.path.dirname(os.path.abspath(sys.argv[0])))

I'm not sure what Pythonwin has to do with this exactly...
You always can run a process with a "startup directory" different from 
where it is located. If you want to ensure that they are the same, you must 
do something like above. Or create a shortcut icon.


Gabriel Genellina
Softlab SRL 



More information about the Python-win32 mailing list