Update server.py
This commit is contained in:
parent
03097cfd33
commit
971e4e9c6d
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue