blob: e162e1840c608fce1fa2123a195240b0951831a7 [file] [log] [blame]
#!/usr/bin/env python
# This imports and runs ../../xos-observer.py
import importlib
import os
import sys
sys.path.append('/opt/xos')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xos.settings")
# Legacy code to support VTN API version 1.
# import synchronizers.base.event_loop
# if hasattr(synchronizers.base.event_loop, "set_driver"):
# # VTN synchronizer needs the OpenStack driver
# from openstack_xos.driver import OpenStackDriver
# synchronizers.base.event_loop.set_driver(OpenStackDriver())
mod = importlib.import_module("synchronizers.base.xos-synchronizer")
mod.main()