[CORD-1445] Refactored vPGWC for CORD-3.0
Change-Id: I6024d0e4eae62ffbce84d6deef0be5c8918f7986
diff --git a/xos/synchronizer/vpgwc-synchronizer.py b/xos/synchronizer/vpgwc-synchronizer.py
index 95f4081..361ad7f 100755
--- a/xos/synchronizer/vpgwc-synchronizer.py
+++ b/xos/synchronizer/vpgwc-synchronizer.py
@@ -1,13 +1,17 @@
#!/usr/bin/env python
-# This imports and runs ../../xos-observer.py
-# Runs the standard XOS observer
+# Runs the standard XOS synchronizer
import importlib
import os
import sys
-observer_path = os.path.join(os.path.dirname(
- os.path.realpath(__file__)), "../../synchronizers/base")
-sys.path.append(observer_path)
+from xosconfig import Config
+
+config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + '/vpgwc_config.yaml')
+Config.init(config_file, 'synchronizer-config-schema.yaml')
+
+synchronizer_path = os.path.join(os.path.dirname(
+ os.path.realpath(__file__)), "../../synchronizers/new_base")
+sys.path.append(synchronizer_path)
mod = importlib.import_module("xos-synchronizer")
-mod.main()
+mod.main()
\ No newline at end of file