Skip to content

Commit

Permalink
Read DATA_PATH and DATABASE_URL from config file on boot(Fix #100)(#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
my8100 committed Mar 1, 2020
1 parent 8104386 commit 6d7c53a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scrapydweb/vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
PYTHON_VERSION = '.'.join([str(n) for n in sys.version_info[:3]])
PY2 = sys.version_info.major < 3
SCRAPYDWEB_SETTINGS_PY = 'scrapydweb_settings_v10.py'
sys.path.append(os.getcwd())

This comment has been minimized.

Copy link
@IMYR666

IMYR666 Aug 29, 2022

This change was not published

try:
custom_settings_module = importlib.import_module(os.path.splitext(SCRAPYDWEB_SETTINGS_PY)[0])
except ImportError:
Expand Down

0 comments on commit 6d7c53a

Please sign in to comment.