Browse Source

Merge pull request #59 from weskerfoot/fix-conf

Fix conf
pull/63/head
Wesley Kerfoot 5 years ago
committed by GitHub
parent
commit
61a1f674fe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      deletefb/logging_conf.json
  2. 6
      deletefb/tools/common.py
  3. 7
      setup.py

2
deletefb/logging_conf.json

@ -27,7 +27,7 @@
"level": "INFO",
"class": "logging.handlers.WatchedFileHandler",
"formatter": "verbose",
"filename": "deletefb/deletefb.log",
"filename": "./deletefb.log",
"mode": "a",
"encoding": "utf-8"
}

6
deletefb/tools/common.py

@ -40,7 +40,11 @@ def logger(name):
Returns:
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)
os.chdir("..")
with open(config_path, "r", encoding="utf-8") as config_file:

7
setup.py

@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup(
name="delete-facebook-posts",
version="1.1.2",
version="1.1.4",
author="Wesley Kerfoot",
author_email="wes@wesk.tech",
description="A Selenium Script to Delete Facebook Posts",
@ -13,6 +13,11 @@ setuptools.setup(
long_description_content_type="text/markdown",
url="https://github.com/weskerfoot/DeleteFB",
packages=setuptools.find_packages(),
include_package_data=True,
package_data={
# If any package contains *.txt or *.rst files, include them:
'': ['*.json'],
},
install_requires = [
"selenium",
"selenium-requests",

Loading…
Cancel
Save