def zipdir(path, ziph):
#ziph is zipfile handle
for root, dirs, files in os.walk(path):
for file in files:
ziph.write(os.path.join(root, file))
zipf = zipfile.ZipFile('test_python.zip', 'w',
zipfile.ZIP_DEFLATED)
zipdir('./test_python', zipf)
schedule.every().thursday.at("11:25").do(zipdir) // **here is the error**
while True :
schedule.run_pending()
time.sleep(1)
I get this error: the first argument must be callable, how can I fix it?
0 Answer(s)