blob: 3c99763abaf0e67bb1933a78780db6839ccd283b [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
Scott Baker90d8a182016-08-11 09:07:42 -07008sys.path.append('/opt/xos')
9
10os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xos.settings")
11
12import synchronizers.base.event_loop
13if hasattr(synchronizers.base.event_loop, "set_driver"):
14 # VTN synchronizer needs the OpenStack driver
15 from openstack_xos.driver import OpenStackDriver
16 synchronizers.base.event_loop.set_driver(OpenStackDriver())
17
18mod = importlib.import_module("synchronizers.base.xos-synchronizer")
Scott Bakerc3ce3e72016-06-20 17:35:19 -070019mod.main()
Scott Baker90d8a182016-08-11 09:07:42 -070020