blob: 9855c72e1ddff5b183cf402a1538d7230ca099e3 [file] [log] [blame]
Scott Bakerc3ce3e72016-06-20 17:35:19 -07001#!/usr/bin/env python
2
3# This imports and runs ../../xos-observer.py
4
5import importlib
6import os
7import sys
Matteo Scandolo9834e042017-06-05 15:48:09 -07008from xosconfig import Config
9
10config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + '/vtn_config.yaml')
11Config.init(config_file, 'synchronizer-config-schema.yaml')
12
Scott Baker90d8a182016-08-11 09:07:42 -070013sys.path.append('/opt/xos')
14
15os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xos.settings")
16
Scott Baker61b41a92017-03-14 13:04:57 -070017mod = importlib.import_module("synchronizers.new_base.xos-synchronizer")
Scott Bakerc3ce3e72016-06-20 17:35:19 -070018mod.main()
Scott Baker90d8a182016-08-11 09:07:42 -070019