Scott Baker | 619de67 | 2016-06-20 12:49:38 -0700 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | # Runs the standard XOS synchronizer |
| 4 | |
| 5 | import importlib |
| 6 | import os |
| 7 | import sys |
Matteo Scandolo | 71f404f | 2017-06-02 14:44:57 -0700 | [diff] [blame] | 8 | from xosconfig import Config |
| 9 | |
| 10 | config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + '/exampleservice_config.yaml') |
| 11 | Config.init(config_file, 'synchronizer-config-schema.yaml') |
Scott Baker | 619de67 | 2016-06-20 12:49:38 -0700 | [diff] [blame] | 12 | |
| 13 | synchronizer_path = os.path.join(os.path.dirname( |
Scott Baker | e95023b | 2017-02-23 09:50:04 -0800 | [diff] [blame] | 14 | os.path.realpath(__file__)), "../../synchronizers/new_base") |
Scott Baker | 619de67 | 2016-06-20 12:49:38 -0700 | [diff] [blame] | 15 | sys.path.append(synchronizer_path) |
| 16 | mod = importlib.import_module("xos-synchronizer") |
| 17 | mod.main() |
| 18 | |