t; I think you can do something like:
>
> n=false
> f=file.open("") #stuff here
> g=[]
> for line in f.readlines():
>if n: g.append(line)
>n=true
>
> #write g to file
>
> if you are on a unix box, then using the standard untils might be a
>
The following should work:
os.path.split( os.path.realpath( sys.argv[0] ) )[0]
Cheers,
pieter
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Gabriel Cooper
Sent: 24 January 2005 16:40
To: python-list@python.org
Subject: Finding a script's home direc