summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhang ab <zhanganbing@chinamobile.com>2018-03-27 02:33:10 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-27 02:33:10 +0000
commitd2337bfb4f69ce5395a2cb8efd82aecfac43272d (patch)
tree3493bccd6bbc5828fd2cf2970dac4fcb9b13d94a
parenteea4fc21aa4f2527207d0c4c1fccfd5478561fb0 (diff)
parent2e3daa0862e1d847868f98b57bfc1051e3611085 (diff)
Merge "Hack the python path"
-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