From 7c035652427020089d32739edd00075e238c404c Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Fri, 20 Dec 2019 15:10:57 -0800 Subject: [PATCH] Allow sources to import from sources folder --- inquisitor/importer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inquisitor/importer.py b/inquisitor/importer.py index b27113b..f1722c5 100644 --- a/inquisitor/importer.py +++ b/inquisitor/importer.py @@ -2,6 +2,7 @@ import os import traceback import importlib.util import json +import sys import error from configs import SOURCES_PATH, DUNGEON_PATH, logger @@ -9,6 +10,7 @@ import loader import timestamp def update_sources(*source_names): + sys.path.append(SOURCES_PATH) for source_name in source_names: try: source_module = load_source(source_name)