Update server.py

This commit is contained in:
Nova Cat 2025-01-08 21:59:31 -08:00
parent 03097cfd33
commit 971e4e9c6d

View file

@ -84,7 +84,7 @@ with open(sys.argv[1], 'r') as file:
print("Successfully loaded config!") print("Successfully loaded config!")
for i in modules: for i in modules:
if not os.path.isabs(i): if not os.path.isabs(i):
i = os.path.dirname(__file__) + "/" + i i = os.path.dirname(__file__) + "/modules/" + i
try: try:
print(f"Importing module {i}...") print(f"Importing module {i}...")
temp_module = importlib.util.spec_from_file_location(f"{i}.py") temp_module = importlib.util.spec_from_file_location(f"{i}.py")