program path
kpop
snag at jool.po
Sat Jun 7 20:35:55 EDT 2003
Hi
how do i get the path of the python script thats running from within
python.
this might not always be the same as the path I ran the program from nor
os.getcwd().
like if i ran the program from a differant directory.
I would like it to say something like /home/users/blah/myprogram on unix
and
c:\stuff\myprogram on windows for example. It doesnt have to give the name
of the .py
script itself just the directory its in, with or without the last seperation
character (/ on unix).
Thanks
More information about the Python-list
mailing list