How to read the directory which the actively running python file islocated in?
Michael Malinowski
michael at guerrilla-games.com
Fri Dec 1 05:39:10 EST 2006
Nevermind, I got it using the sys.argv[0]
-----Original Message-----
From: python-list-bounces+michael=guerrilla-games.com at python.org
[mailto:python-list-bounces+michael=guerrilla-games.com at python.org] On
Behalf Of Michael Malinowski
Sent: Friday, December 01, 2006 9:07 AM
To: python-list at python.org
Subject: How to read the directory which the actively running python file
islocated in?
Is there a way to read the directory that the currently running python file
is located in?
Cheers
Mike.
--
http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list