Browse Source

Fix error with missing data file

pull/59/head
wes 5 years ago
parent
commit
f880493183
  1. 2
      deletefb/tools/common.py
  2. 5
      setup.py

2
deletefb/tools/common.py

@ -40,7 +40,7 @@ def logger(name):
Returns:
logging.Logger
"""
config_path = "deletefb/logging_conf.json"
config_path = "../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:

5
setup.py

@ -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