blob: 77ee91c153f405ba395392b0d4f05092867dcfff [file] [log] [blame]
Scott Baker7a327592016-06-20 17:34:06 -07001#!/usr/bin/env python
2
3# This imports and runs ../../xos-observer.py
4
5import importlib
6import os
7import sys
Matteo Scandolod3744122017-06-02 16:09:31 -07008from xosconfig import Config
9
10config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + '/onos_config.yaml')
11Config.init(config_file, 'synchronizer-config-schema.yaml')
12
Scott Baker91ee5e42017-03-14 10:33:52 -070013observer_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),"../../synchronizers/new_base")
Scott Baker7a327592016-06-20 17:34:06 -070014sys.path.append(observer_path)
15mod = importlib.import_module("xos-synchronizer")
16mod.main()