diff --git a/README.md b/README.md index 5263b14..5a6c430 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ git+https://github.com/weskerfoot/DeleteFB.git` everything. You may safely minimize the chrome window without breaking it. ## 2FA -* It is recommended that you disable Two-Factor Authentication tempoprarily +* It is recommended that you disable Two-Factor Authentication temporarily while you are running the script, in order to get the best experience. * If you run into issues with Facebook complaining about your browser, diff --git a/deletefb/logging_conf.json b/deletefb/logging_conf.json index 2078e80..e8037ec 100644 --- a/deletefb/logging_conf.json +++ b/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" } diff --git a/deletefb/tools/common.py b/deletefb/tools/common.py index c107abf..8cc4385 100644 --- a/deletefb/tools/common.py +++ b/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: diff --git a/setup.py b/setup.py index ce75ca6..87e82db 100644 --- a/setup.py +++ b/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",