Scott Baker | 171d35e | 2016-06-20 17:36:29 -0700 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | # This imports and runs ../../xos-observer.py |
| 4 | |
| 5 | import importlib |
| 6 | import os |
| 7 | import sys |
Matteo Scandolo | 15f11b9 | 2017-05-30 17:31:02 -0700 | [diff] [blame] | 8 | |
| 9 | from xosconfig import Config |
| 10 | config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + '/vtr_config.yaml') |
| 11 | |
| 12 | Config.init(config_file, 'synchronizer-config-schema.yaml') |
| 13 | observer_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../synchronizers/new_base") |
| 14 | |
| 15 | # observer_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../../../xos/xos/synchronizers/new_base") |
| 16 | # sys.path.append('/Users/teone/Sites/opencord/orchestration/xos/xos') |
| 17 | |
Scott Baker | 171d35e | 2016-06-20 17:36:29 -0700 | [diff] [blame] | 18 | sys.path.append(observer_path) |
| 19 | mod = importlib.import_module("xos-synchronizer") |
| 20 | mod.main() |