def run(): for theme in themes: print('=========================' + theme + ' begin =========================') common.init(AWTK_ROOT, ASSETS_ROOT, theme, ASSET_C) common.updateRes() print('=========================' + theme + ' end =========================\n') common.genAssetC(themes, ASSET_C)
def run(): common.updateRes()
import os import sys AWTK_ROOT='$AWTK_ROOT' sys.path.append(os.path.join(AWTK_ROOT, "scripts")) import update_res_common as common APP_ROOT=os.getcwd() ASSETS_ROOT=common.joinPath(APP_ROOT, 'assets') ASSET_C=common.joinPath(APP_ROOT, 'assets.c') common.init(AWTK_ROOT, ASSETS_ROOT, 'default', ASSET_C); common.updateRes()