caravel_to_superset(1)

分析:

#获取config文件 CONFIG_MODULE=superset.config

APP_DIR = os.path.dirname(__file__)

CONFIG_MODULE = os.environ.get('SUPERSET_CONFIG','superset.config')

#加载backendsync.json

withopen(APP_DIR +'/static/assets/backendSync.json','r')asf:

frontend_config = json.load(f)

#创建flask app

app = Flask(__name__)

app.config.from_object(CONFIG_MODULE)

#获取conf 配置项的类flask.config.Config

conf = app.config

#################################################################

# Handling manifest file logic at app start

#################################################################

#获取js css 文件键值对 并赋值manifest

MANIFEST_FILE = APP_DIR +'/static/assets/dist/manifest.json'

manifest = {}

你可能感兴趣的:(caravel_to_superset(1))