Re: Delete first line from file

2005-03-01 Thread Pieter Claerhout
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 >

RE: Finding a script's home directory?

2005-01-24 Thread Pieter Claerhout
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