diff options
author | Bin Sun <bins@vmware.com> | 2018-03-26 14:35:48 +0800 |
---|---|---|
committer | Bin Sun <bins@vmware.com> | 2018-03-26 14:41:18 +0800 |
commit | 73742ff84db9f2e72701c16e544dd76d57132328 (patch) | |
tree | 29a5cdd67fa8b19116d57c9ec2cc86354cf12900 /multivimbroker | |
parent | acffd04f08606b905a63d91ba4f3ae3bb340b1da (diff) |
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 <bins@vmware.com>
Diffstat (limited to 'multivimbroker')
-rw-r--r-- | multivimbroker/multivimbroker/scripts/api.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |