summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Sun <bins@vmware.com>2018-03-26 14:54:17 +0800
committerBin Sun <bins@vmware.com>2018-03-26 14:54:17 +0800
commit2e3daa0862e1d847868f98b57bfc1051e3611085 (patch)
tree02d7c2ae4e3eabe6bdf963eff6d9c17dc4a40d5b
parentc2a1813c93e8a4026290a5c2d7c5bf2d27b542e4 (diff)
Hack the python path
Since MultiCloud project is not installed explicitly. Hack the python path to make the code work. Change-Id: I6a0657ba39b514ca7ed06e5b6c81b2520c730357 Issue-ID: MULTICLOUD-150 Signed-off-by: Bin Sun <bins@vmware.com>
-rw-r--r--vio/vio/scripts/api.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/vio/vio/scripts/api.py b/vio/vio/scripts/api.py
index c3bd1a7..5ba83c9 100644
--- a/vio/vio/scripts/api.py
+++ b/vio/vio/scripts/api.py
@@ -12,9 +12,13 @@
import eventlet
eventlet.monkey_patch()
+import os # noqa
from oslo_config import cfg # noqa
from oslo_service import service # noqa
import sys # noqa
+# FIXME: Since there is no explicitly setup process for the project. Hack the
+# python here.
+sys.path.append(os.path.abspath('.'))
from vio.api_v2 import service as api_service # noqa