update how to run synchronizer
Change-Id: I662a7057d26dd6492176c610fb35acb5be2a738d
diff --git a/xos/synchronizer/vmme-synchronizer.py b/xos/synchronizer/vmme-synchronizer.py
index 7f94bc7..f27df81 100755
--- a/xos/synchronizer/vmme-synchronizer.py
+++ b/xos/synchronizer/vmme-synchronizer.py
@@ -14,14 +14,18 @@
#!/usr/bin/env python
-# Runs the standard XOS observer
+# This imports and runs ../../xos-observer.py
import importlib
import os
import sys
-observer_path = os.path.join(os.path.dirname(
- os.path.realpath(__file__)), "../../synchronizers/new_base")
+from xosconfig import Config
+config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + '/vmme_config.yaml')
+
+Config.init(config_file, 'synchronizer-config-schema.yaml')
+observer_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../synchronizers/new_base")
+
sys.path.append(observer_path)
mod = importlib.import_module("xos-synchronizer")
mod.main()