Hack the python path 97/38397/1
authorBin Sun <bins@vmware.com>
Mon, 26 Mar 2018 06:35:48 +0000 (14:35 +0800)
committerBin Sun <bins@vmware.com>
Mon, 26 Mar 2018 06:41:18 +0000 (14:41 +0800)
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>
multivimbroker/multivimbroker/scripts/api.py

index 01b69a2..b9526d7 100644 (file)
 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