summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/opnfv_testapi/resources/ui_handlers.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/test/testapi/opnfv_testapi/resources/ui_handlers.py')
-rw-r--r--utils/test/testapi/opnfv_testapi/resources/ui_handlers.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/utils/test/testapi/opnfv_testapi/resources/ui_handlers.py b/utils/test/testapi/opnfv_testapi/resources/ui_handlers.py
index ac8f816a4..4c14802c4 100644
--- a/utils/test/testapi/opnfv_testapi/resources/ui_handlers.py
+++ b/utils/test/testapi/opnfv_testapi/resources/ui_handlers.py
@@ -1,14 +1,11 @@
from opnfv_testapi.resources.handlers import GenericApiHandler
-from opnfv_testapi.tornado_swagger import settings
+from opnfv_testapi.common import config
class UIHandler(GenericApiHandler):
- def initialize(self, **kwargs):
- self.static_path = settings.docs_settings.get('static_path')
- self.base_url = 'http://localhost:8000'
def get_template_path(self):
- return self.static_path
+ return config.Config().static_path
def get(self):
self.render('testapi-ui/index.html')