Import config only when needed, it was causing cyclic dependency when

running the regression suite.
This commit is contained in:
Ashesh Vashi 2017-03-07 16:06:36 +05:30
parent 8435257e00
commit 6cc1fbe739

View File

@ -13,11 +13,11 @@ import os
from flask_security import current_user, login_required
import config
@login_required
def get_storage_directory():
import config
if config.SERVER_MODE is not True:
return None
@ -50,6 +50,7 @@ def get_storage_directory():
def init_app(app):
import config
if config.SERVER_MODE is not True:
return None