diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-12-09 16:24:03 +0100 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2021-12-10 10:03:12 +0100 |
commit | 1601ad9b298ccefa1a71ae9ccfb939c73a5fc0ec (patch) | |
tree | 44f11cbb1fd7bf2bee2fbe9d9a3887120c682597 /src | |
parent | 05f2fd43c274f896a719df097e668d8ca371b615 (diff) |
#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.
Diffstat (limited to 'src')
-rw-r--r-- | src/ogClient.py | 6 |
1 files changed, 1 insertions, 5 deletions
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 |