Commit 6d6e83253ba218913a441ed4e2450ab1f5833f85

Authored by Alexis Koralewski
1 parent a4e14b10
Exists in dev

fix path to save plc_config.json for plc_checker

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
src/core/pyros_django/env_monitor/plc_checker.py
... ... @@ -149,7 +149,8 @@ class PlcChecker(object):
149 149 # ok with ./start_agent agentM
150 150 #plc_config_dir = "./src/core/pyros_django/monitoring/"
151 151 # ok with ./pyros start agentM
152   - plc_config_dir = Path("../env_monitor/")
  152 + #plc_config_dir = Path("../env_monitor/")
  153 + plc_config_dir = os.path.join(os.environ.get("DJANGO_PATH"), "env_monitor")
153 154 # When executing test, we're not in the monitoring folder
154 155 if("pyros_django" == os.getcwd().split("/")[-1]):
155 156 plc_config_dir = Path("./env_monitor/")
... ...