[Tutor] Working Directory

Russell Bungay rab121@york.ac.uk
Mon, 06 May 2002 10:58:30 +0100


Russell Bungay wrote:
>>gofishdir = os.path.dirname(__file__)
> 
>though the slightly more obvious answer would be:
>gofishdir = sys.argv[0]

<cough>
gofishdir = os.path.dirname(sys.argv[0])

Russell
--
http://www.bigmaddrongo.com
President of York University Trampoline Club:
http://york.trampolining.net
Chair of The York Glee Singers:
http://www.gleesingers.co.uk