aboutsummaryrefslogtreecommitdiffstats
path: root/bin/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/run.py')
-rwxr-xr-xbin/run.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/run.py b/bin/run.py
index 159e7a4..95cb4d9 100755
--- a/bin/run.py
+++ b/bin/run.py
@@ -21,6 +21,7 @@
# Author Gokul Singaraju gs244f@att.com
#
+import os
import sys
import yaml
import multiprocessing
@@ -45,6 +46,10 @@ if __name__ == '__main__':
multiprocessing.log_to_stderr()
logger = multiprocessing.get_logger()
logger.setLevel(logging.INFO)
+ my_env = os.environ.copy()
+ my_env["PYTHONPATH"] = my_env["PYTHONPATH"]+"/usr/local/lib/python3.6:"
+ p = subprocess.Popen(['./bin/check_health.py'],stdout=subprocess.PIPE,env=my_env)
+ #print(p.communicate())
with open("./miss_htbt_service/config/config.yaml", 'r') as ymlfile:
cfg = yaml.load(ymlfile)
# Put some initial values into the queue