diff options
Diffstat (limited to 'ogclient')
-rwxr-xr-x | ogclient | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -11,6 +11,7 @@ import json import logging import argparse +import platform import subprocess try: from signal import SIG_DFL, SIGPIPE @@ -52,7 +53,12 @@ def main(): if args.func: args.func(args) return - config_path = f'{ogClient.OG_PATH}cfg/ogclient.json' + + if platform.system().lower() == 'linux': + config_path = f'{ogClient.OG_PATH}ogclient/cfg/ogclient.json' + else: + config_path = './cfg/ogclient.json' + try: with open(config_path, 'r') as f: CONFIG = json.load(f) |