Scott Baker | c3ce3e7 | 2016-06-20 17:35:19 -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 | 9834e04 | 2017-06-05 15:48:09 -0700 | [diff] [blame] | 8 | from xosconfig import Config |
| 9 | |
| 10 | config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + '/vtn_config.yaml') |
| 11 | Config.init(config_file, 'synchronizer-config-schema.yaml') |
| 12 | |
Scott Baker | 90d8a18 | 2016-08-11 09:07:42 -0700 | [diff] [blame] | 13 | sys.path.append('/opt/xos') |
| 14 | |
| 15 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xos.settings") |
| 16 | |
Scott Baker | 61b41a9 | 2017-03-14 13:04:57 -0700 | [diff] [blame] | 17 | mod = importlib.import_module("synchronizers.new_base.xos-synchronizer") |
Scott Baker | c3ce3e7 | 2016-06-20 17:35:19 -0700 | [diff] [blame] | 18 | mod.main() |
Scott Baker | 90d8a18 | 2016-08-11 09:07:42 -0700 | [diff] [blame] | 19 | |