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

running the regression suite.
pull/3/head
Ashesh Vashi 2017-03-07 16:06:36 +05:30
parent 8435257e00
commit 6cc1fbe739
1 changed files with 2 additions and 1 deletions

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