Scott Baker | 761e106 | 2016-06-20 17:18:17 -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 | 79f298e | 2017-06-05 11:18:01 -0700 | [diff] [blame^] | 8 | from xosconfig import Config |
| 9 | |
| 10 | config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + '/vsg_config.yaml') |
| 11 | |
| 12 | Config.init(config_file, 'synchronizer-config-schema.yaml') |
| 13 | |
Scott Baker | 32f6512 | 2017-03-08 17:04:16 -0800 | [diff] [blame] | 14 | observer_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),"../../synchronizers/new_base") |
Scott Baker | 761e106 | 2016-06-20 17:18:17 -0700 | [diff] [blame] | 15 | sys.path.append(observer_path) |
| 16 | mod = importlib.import_module("xos-synchronizer") |
| 17 | mod.main() |