From 1601ad9b298ccefa1a71ae9ccfb939c73a5fc0ec Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Thu, 9 Dec 2021 16:24:03 +0100 Subject: #1065 Init config_path according to platform Commit 2dbcd18c06dd breaks interfaceAdm path for live operations. Keep OG_PATH to the value prior to commit 2dbcd18c06dd. Check platform before reading config file. If platform is different from linux then look for cfg/ogclient.json in current folder and do not use OG_PATH. --- src/ogClient.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/ogClient.py b/src/ogClient.py index 45f7007..a167c71 100644 --- a/src/ogClient.py +++ b/src/ogClient.py @@ -11,7 +11,6 @@ import select import socket import time import email -import platform from io import StringIO from src.restRequest import * @@ -24,10 +23,7 @@ class State(Enum): FORCE_DISCONNECTED = 2 class ogClient: - if platform.system().lower() == 'linux': - OG_PATH = '/opt/opengnsys/ogclient/' - else: - OG_PATH = './' + OG_PATH = '/opt/opengnsys/' def __init__(self, config): self.CONFIG = config -- cgit v1.2.3-18-g5258