Browse Source
Merge pull request #59 from weskerfoot/fix-conf
Fix conf
pull/63/head
Wesley Kerfoot
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
12 additions and
3 deletions
-
deletefb/logging_conf.json
-
deletefb/tools/common.py
-
setup.py
|
@ -27,7 +27,7 @@ |
|
|
"level": "INFO", |
|
|
"level": "INFO", |
|
|
"class": "logging.handlers.WatchedFileHandler", |
|
|
"class": "logging.handlers.WatchedFileHandler", |
|
|
"formatter": "verbose", |
|
|
"formatter": "verbose", |
|
|
"filename": "deletefb/deletefb.log", |
|
|
"filename": "./deletefb.log", |
|
|
"mode": "a", |
|
|
"mode": "a", |
|
|
"encoding": "utf-8" |
|
|
"encoding": "utf-8" |
|
|
} |
|
|
} |
|
|
|
@ -40,7 +40,11 @@ def logger(name): |
|
|
Returns: |
|
|
Returns: |
|
|
logging.Logger |
|
|
logging.Logger |
|
|
""" |
|
|
""" |
|
|
config_path = "deletefb/logging_conf.json" |
|
|
|
|
|
|
|
|
# Make sure the path always points to the correct directory |
|
|
|
|
|
config_path = os.path.dirname( |
|
|
|
|
|
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("..") |
|
|
with open(config_path, "r", encoding="utf-8") as config_file: |
|
|
with open(config_path, "r", encoding="utf-8") as config_file: |
|
|
|
@ -5,7 +5,7 @@ with open("README.md", "r") as fh: |
|
|
|
|
|
|
|
|
setuptools.setup( |
|
|
setuptools.setup( |
|
|
name="delete-facebook-posts", |
|
|
name="delete-facebook-posts", |
|
|
version="1.1.2", |
|
|
version="1.1.4", |
|
|
author="Wesley Kerfoot", |
|
|
author="Wesley Kerfoot", |
|
|
author_email="wes@wesk.tech", |
|
|
author_email="wes@wesk.tech", |
|
|
description="A Selenium Script to Delete Facebook Posts", |
|
|
description="A Selenium Script to Delete Facebook Posts", |
|
@ -13,6 +13,11 @@ setuptools.setup( |
|
|
long_description_content_type="text/markdown", |
|
|
long_description_content_type="text/markdown", |
|
|
url="https://github.com/weskerfoot/DeleteFB", |
|
|
url="https://github.com/weskerfoot/DeleteFB", |
|
|
packages=setuptools.find_packages(), |
|
|
packages=setuptools.find_packages(), |
|
|
|
|
|
include_package_data=True, |
|
|
|
|
|
package_data={ |
|
|
|
|
|
# If any package contains *.txt or *.rst files, include them: |
|
|
|
|
|
'': ['*.json'], |
|
|
|
|
|
}, |
|
|
install_requires = [ |
|
|
install_requires = [ |
|
|
"selenium", |
|
|
"selenium", |
|
|
"selenium-requests", |
|
|
"selenium-requests", |
|
|