Rizwan Haider | 30b3379 | 2016-08-18 02:11:18 -0400 | [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 |
Max Chu | a110943 | 2017-07-11 13:15:04 -0700 | [diff] [blame^] | 8 | from xosconfig import Config |
| 9 | |
| 10 | config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + '/metronetwork_config.yaml') |
| 11 | Config.init(config_file, 'synchronizer-config-schema.yaml') |
Rizwan Haider | 30b3379 | 2016-08-18 02:11:18 -0400 | [diff] [blame] | 12 | |
Andrea Campanella | ade8848 | 2017-04-05 12:39:52 +0200 | [diff] [blame] | 13 | observer_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../synchronizers/new_base") |
Rizwan Haider | 30b3379 | 2016-08-18 02:11:18 -0400 | [diff] [blame] | 14 | sys.path.append(observer_path) |
| 15 | mod = importlib.import_module("xos-synchronizer") |
| 16 | mod.main() |