forked from mirrors/thatmattlove-hyperglass
adding parent dir to ci path
This commit is contained in:
parent
5a7873f938
commit
502d3c3848
1 changed files with 7 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import glob
|
||||
import inspect
|
||||
import requests
|
||||
from logzero import logger
|
||||
|
||||
|
|
@ -184,9 +185,12 @@ def ci_config():
|
|||
def flask_dev_server(host, port):
|
||||
"""Starts Flask development server for testing without WSGI/Reverse Proxy"""
|
||||
try:
|
||||
from ..hyperglass import hyperglass
|
||||
from ..hyperglass import configuration
|
||||
from ..hyperglass import render
|
||||
parent_directory = os.path.dirname(working_directory)
|
||||
sys.path.insert(0, parent_directory)
|
||||
|
||||
from hyperglass import hyperglass
|
||||
from hyperglass import configuration
|
||||
from hyperglass import render
|
||||
|
||||
render.css()
|
||||
logger.info("Starting Flask development server")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue