blob: 3e7a06ce5fbc20a230294ae03498260467421cc6 [file] [log] [blame]
Matteo Scandoloa4e6e9a2016-08-23 12:04:45 -07001#!/usr/bin/env python
2
3# Runs the standard XOS synchronizer
4
5import importlib
6import os
7import sys
Matteo Scandolo7c057482017-06-05 10:40:25 -07008from xosconfig import Config
9
10config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + '/vrouter_config.yaml')
11
12Config.init(config_file, 'synchronizer-config-schema.yaml')
Matteo Scandoloa4e6e9a2016-08-23 12:04:45 -070013
14synchronizer_path = os.path.join(os.path.dirname(
Scott Baker1c1c44e2017-03-14 10:19:19 -070015 os.path.realpath(__file__)), "../../synchronizers/new_base")
Matteo Scandoloa4e6e9a2016-08-23 12:04:45 -070016sys.path.append(synchronizer_path)
17mod = importlib.import_module("xos-synchronizer")
18mod.main()