From a1a745b4820ec46a2e707d77f6178cf9e97654f6 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Fri, 12 May 2017 18:33:00 +0800 Subject: refactor static_path to accomodate web portal move tornado_swagger/static to opnfv_testapi/static move swagger related 3rd libs to 3rd_party/swagger Change-Id: I32bba10584c99d13687b93f32577e37581db0c63 Signed-off-by: SerenaFeng --- utils/test/testapi/opnfv_testapi/common/config.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils/test/testapi/opnfv_testapi/common') 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): -- cgit 1.2.3-korg