[python-win32] PythonWin - Start in script's directory
gregpinero at gmail.com
Tue Nov 22 23:50:58 CET 2005
Ah, very good idea! I just tried that and it works.
For posterity you can add an "edit with" option to a file type in windows by
going to folder options, selecting the file types tab, go to the file type
you want to change, select change, select new, type in a name like edit with
pythonwin, and finally browse for the pythonwin exe.
On 11/22/05, Waldemar Osuch <waldemar.osuch at gmail.com> wrote:
> On 11/22/05, Gregory Piñero <gregpinero at gmail.com> 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)))
> My work around is to right click on the script and select "Edit with
> This way the current directory stays the same as the script's.
> If you do not the "Edit with Pythonwin" option it is easy to create it
Chief Innovation Officer
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-win32