summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/opnfv_testapi/common/config.py
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2017-05-18 01:00:40 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-18 01:00:40 +0000
commit26215c783dd2eb900eb0e987bd9b3b850c05e3fe (patch)
tree6184aadeb8753fec3213fef3a529726a1cd3dc45 /utils/test/testapi/opnfv_testapi/common/config.py
parent8952b1d73c5ac50f7267c89a19ab83b6664fade5 (diff)
parenta1a745b4820ec46a2e707d77f6178cf9e97654f6 (diff)
Merge "refactor static_path to accomodate web portal"
Diffstat (limited to 'utils/test/testapi/opnfv_testapi/common/config.py')
-rw-r--r--utils/test/testapi/opnfv_testapi/common/config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/test/testapi/opnfv_testapi/common/config.py b/utils/test/testapi/opnfv_testapi/common/config.py
index 70d7bd63f..46765ffd1 100644
--- a/utils/test/testapi/opnfv_testapi/common/config.py
+++ b/utils/test/testapi/opnfv_testapi/common/config.py
@@ -17,6 +17,10 @@ class Config(object):
def __init__(self):
self.file = self.CONFIG if self.CONFIG else self._default_config()
self._parse()
+ self.static_path = os.path.join(
+ os.path.dirname(os.path.normpath(__file__)),
+ os.pardir,
+ 'static')
def _parse(self):
if not os.path.exists(self.file):