downloadpath

This commit is contained in:
Andreas Stephanides
2017-01-14 16:20:21 +01:00
parent 491fd2d25b
commit 38d28384ea

View File

@@ -6,7 +6,7 @@ from config import Config
cfg = Config(file(os.path.join(package_directory, 'config.cfg'))) cfg = Config(file(os.path.join(package_directory, 'config.cfg')))
#--------------- Logging #--------------- Logging
import logging import logging
download_path="./cdw"
file_handler=logging.FileHandler(cfg.logfile) file_handler=logging.FileHandler(cfg.logfile)
file_handler.setLevel(logging.DEBUG) file_handler.setLevel(logging.DEBUG)
stream_handler=logging.StreamHandler(sys.stdout) stream_handler=logging.StreamHandler(sys.stdout)
@@ -18,6 +18,8 @@ clt.addHandler(stream_handler)
clogger=clt clogger=clt
#---------------- #----------------
download_path=cfg.download_path
lg=clt lg=clt
from gevent import spawn, monkey from gevent import spawn, monkey
monkey.patch_all() monkey.patch_all()