RE: Help with embedding fully qualified script name

2005-02-14 Thread Robert Brewer
Kamilche wrote: > To avoid pathname headaches, I've taken to including the following 3 > lines at the top of every script that will be double-clicked: > > import os, sys > pathname, scriptname = os.path.split(sys.argv[0]) > pathname = os.path.abspath(pathname) > os.chdir(pathname) Putting the sys

Re: Help with embedding fully qualified script name

2005-02-14 Thread Kamilche
To avoid pathname headaches, I've taken to including the following 3 lines at the top of every script that will be double-clicked: import os, sys pathname, scriptname = os.path.split(sys.argv[0]) pathname = os.path.abspath(pathname) os.chdir(pathname) -- http://mail.python.org/mailman/listinfo/p