blob: 8d397c7887d71ff4c444f117d887ca0a358bd3c2 [file] [log] [blame]
Scott Baker171d35e2016-06-20 17:36:29 -07001#!/usr/bin/env python
2
3# This imports and runs ../../xos-observer.py
4
5import importlib
6import os
7import sys
Matteo Scandolo15f11b92017-05-30 17:31:02 -07008
9from xosconfig import Config
10config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + '/vtr_config.yaml')
11
12Config.init(config_file, 'synchronizer-config-schema.yaml')
13observer_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../synchronizers/new_base")
14
15# observer_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../../../xos/xos/synchronizers/new_base")
16# sys.path.append('/Users/teone/Sites/opencord/orchestration/xos/xos')
17
Scott Baker171d35e2016-06-20 17:36:29 -070018sys.path.append(observer_path)
19mod = importlib.import_module("xos-synchronizer")
20mod.main()