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 |
Rizwan Haider | 30b3379 | 2016-08-18 02:11:18 -0400 | [diff] [blame] | 9 | |
Max Chu | a110943 | 2017-07-11 13:15:04 -0700 | [diff] [blame] | 10 | config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file)) + '/metronetwork_config.yaml') |
| 11 | |
Rizwan Haider | 30b3379 | 2016-08-18 02:11:18 -0400 | [diff] [blame] | 12 | sys.path.append("/opt/xos/synchronizers/base") |
| 13 | print sys.path |
| 14 | mod = importlib.import_module("xos-synchronizer") |
| 15 | mod.main() |