LoD MoD wrote:
> In this instance the trackback was somewhat unhelpful.There problem was
> here:
>
>file = open(filename, 'r')
>
> should be
>
>file = open(a, 'r')
>
> args should be passed within the getopt riff
Well given the code you posted, this little "problem" you
In this instance the trackback was somewhat unhelpful.There problem was
here:
file = open(filename, 'r')
should be
file = open(a, 'r')
args should be passed within the getopt riff
On Fri, Jul 17, 2009 at 11:08 AM, MRAB wrote:
> LoD MoD wrote:
>
>> I am having trouble ex
LoD MoD wrote:
I am having trouble extending my option parsing.
Any help is appreciated:
import sys
import getopt
import time
def tail(file):
while 1:
where = file.tell()
line = file.readline()
if not line:
time.sleep(1)
file.seek(where)
I am having trouble extending my option parsing.
Any help is appreciated:
import sys
import getopt
import time
def tail(file):
while 1:
where = file.tell()
line = file.readline()
if not line:
time.sleep(1)
file.seek(where)
el