Path ... where is my application's home dir?

Tim Golden tim.golden at viacom-outdoor.co.uk
Wed Apr 28 09:44:30 EDT 2004


>I want to store a file in the application directory. What is 
>the easiest 
>way to figure out, where my application is situated?
>
>sys.argv[0] does not work for my purposes... do you have any 
>other ideas.

a) Why doesn't argv[0] work?

b) What O/S are you running?

TJG


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________




More information about the Python-list mailing list