[EMAIL PROTECTED] wrote:
> also the function os.cwd() 
> ;-)

I'm not sure how os.cwd() helps, but generally the solution to this 
starts with pointing out that sys.argv[0] usually contains the path to 
the main script, which is often the answer needed.

Recipes have been posted in the past which cover a wider range of 
situations, including when running as a "py2exe'd" program (i.e. 
"frozen"), as the simple solution doesn't cover all cases.

Checking the archives would probably help.

-Peter

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to