windows installer fixes
This commit is contained in:
@@ -31,8 +31,14 @@ HERMES_PORT = 8443
|
||||
|
||||
|
||||
def run_tests():
|
||||
print("=== [1] Verifying server_config.json & client_config.json ===")
|
||||
server_cfg_path = "server_config.json" if os.path.exists("server_config.json") else os.path.join(ROOT_DIR, "server_config.json")
|
||||
server_cfg_path = "server_config.json"
|
||||
if not os.path.exists(server_cfg_path):
|
||||
server_cfg_path = os.path.join(ROOT_DIR, "server_config.json")
|
||||
if not os.path.exists(server_cfg_path):
|
||||
progdata_path = os.path.join(os.environ.get("ProgramData", r"C:\ProgramData"), "LOGAR-Server", "server_config.json")
|
||||
if os.path.exists(progdata_path):
|
||||
server_cfg_path = progdata_path
|
||||
|
||||
client_cfg_path = "client_config.json" if os.path.exists("client_config.json") else os.path.join(ROOT_DIR, "client_config.json")
|
||||
|
||||
assert os.path.exists(server_cfg_path), f"{server_cfg_path} must exist"
|
||||
|
||||
Reference in New Issue
Block a user