From: Bin Sun Date: Mon, 26 Mar 2018 06:35:48 +0000 (+0800) Subject: Hack the python path X-Git-Tag: v1.1.2~26^2~1 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=multicloud%2Fframework.git;a=commitdiff_plain;h=73742ff84db9f2e72701c16e544dd76d57132328 Hack the python path Since MultiCloud project is not installed explicitly. Hack the python path to make the code work. Change-Id: I2dccb9bc284a0341a8697466022150d83112c47c Issue-ID: MULTICLOUD-150 Signed-off-by: Bin Sun --- diff --git a/multivimbroker/multivimbroker/scripts/api.py b/multivimbroker/multivimbroker/scripts/api.py index 01b69a2..b9526d7 100644 --- a/multivimbroker/multivimbroker/scripts/api.py +++ b/multivimbroker/multivimbroker/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 multivimbroker.api_v2 import service as api_service # noqa