From c83116207291ce60b92686d80cb389bc765569bd Mon Sep 17 00:00:00 2001 From: swee Date: Wed, 8 Jan 2025 21:57:17 -0800 Subject: [PATCH] Update server.py --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index b20401e..a4dc89c 100644 --- a/server.py +++ b/server.py @@ -84,10 +84,10 @@ with open(sys.argv[1], 'r') as file: print("Successfully loaded config!") for i in modules: if not os.path.isabs(i): - i = "modules/" + i + i = os.path.dirname(__file__) + "/" + i try: print(f"Importing module {i}...") - temp_module = importlib.import_module(i) + temp_module = importlib.import_module(i + ".py") if temp_module.__ircat_type__ == "sql.provider": if modules["sql_provider"] != None: modules["sql_provider"] = temp_module