Pingping Lin | d07e26c | 2016-09-06 23:06:01 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
Omar Abdelkader | 401e1cb | 2017-06-21 15:52:54 -0700 | [diff] [blame^] | 3 | # Runs the standard XOS synchronizer |
Pingping Lin | d07e26c | 2016-09-06 23:06:01 +0000 | [diff] [blame] | 4 | |
| 5 | import importlib |
| 6 | import os |
| 7 | import sys |
Omar Abdelkader | 401e1cb | 2017-06-21 15:52:54 -0700 | [diff] [blame^] | 8 | from xosconfig import Config |
| 9 | |
| 10 | config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + '/vpgwc_config.yaml') |
| 11 | Config.init(config_file, 'synchronizer-config-schema.yaml') |
| 12 | |
| 13 | synchronizer_path = os.path.join(os.path.dirname( |
| 14 | os.path.realpath(__file__)), "../../synchronizers/new_base") |
| 15 | sys.path.append(synchronizer_path) |
Pingping Lin | d07e26c | 2016-09-06 23:06:01 +0000 | [diff] [blame] | 16 | mod = importlib.import_module("xos-synchronizer") |
Omar Abdelkader | 401e1cb | 2017-06-21 15:52:54 -0700 | [diff] [blame^] | 17 | mod.main() |