|
@ -36,8 +36,7 @@ def logger(name): |
|
|
""" |
|
|
""" |
|
|
|
|
|
|
|
|
# Make sure the path always points to the correct directory |
|
|
# Make sure the path always points to the correct directory |
|
|
config_path = os.path.dirname( |
|
|
config_path = os.path.dirname(os.path.realpath(__file__)) + "/../logging_conf.json" |
|
|
os.path.realpath(__file__)) + "/../logging_conf.json" |
|
|
|
|
|
|
|
|
|
|
|
if not isfile(config_path): # called from file (deletefb.py) |
|
|
if not isfile(config_path): # called from file (deletefb.py) |
|
|
os.chdir("..") |
|
|
os.chdir("..") |
|
@ -46,7 +45,6 @@ def logger(name): |
|
|
logging.config.dictConfig(config["logging"]) |
|
|
logging.config.dictConfig(config["logging"]) |
|
|
return logging.getLogger(name) |
|
|
return logging.getLogger(name) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NO_CHROME_DRIVER = """ |
|
|
NO_CHROME_DRIVER = """ |
|
|
You need to install the chromedriver for Selenium\n |
|
|
You need to install the chromedriver for Selenium\n |
|
|
Please see this link https://github.com/weskerfoot/DeleteFB#how-to-use-it\n |
|
|
Please see this link https://github.com/weskerfoot/DeleteFB#how-to-use-it\n |
|
|