diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-11-18 16:31:36 +0100 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2021-11-18 16:31:36 +0100 |
commit | 2dbcd18c06dd78491026bcb6fbd770175de4948f (patch) | |
tree | 3f3f748a31f196355187ece7efd719395e692f8b /ogclient | |
parent | f9511932ad996a4cd75b569cfa0eb7ccc223b608 (diff) |
#1065 revisit config_path initialization
If current platform is Linux (either live, virtual or linux) expect
/opt/opengnsys/ogclient/cfg/ to contain ogclient.json.
If current platform is not Linux then we fallback to current directory.
Diffstat (limited to 'ogclient')
-rwxr-xr-x | ogclient | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -22,7 +22,7 @@ from src.log import configure_logging def main(): - config_path = f'{ogClient.OG_PATH}ogclient/cfg/ogclient.json' + config_path = f'{ogClient.OG_PATH}cfg/ogclient.json' try: with open(config_path, 'r') as f: CONFIG = json.load(f) |