G wrote:
> Hi,
>
>I have the following peace of code
>
> def getBook(textid, path):
> url = geturl(textid)
> if os.path.isfile(path + textid):
> f = open(path + textid)
> else:
> os.system('wget -c ' + url + ' -O ' path + textid)
> f = open(path + textid)
>
Hi,
I have the following peace of code
def getBook(textid, path):
url = geturl(textid)
if os.path.isfile(path + textid):
f = open(path + textid)
else:
os.system('wget -c ' + url + ' -O ' path + textid)
f = open(path + textid)
return f
The reason I am no