def getAwtkRoot(ctx): if 'awtk_root' in ctx: return ctx['awtk_root'] else: import awtk_locator as locator locator.init() return locator.AWTK_ROOT
def update_res(ARGUMENTS, is_new_usage): locator.init(ARGUMENTS) import update_res_app as updater if is_new_usage and not hasattr(updater, "getopt"): print(" must update awtk !!!") sys.exit() updater.run(locator.getAwtkRoot())
def update_res(ARGUMENTS): locator.init(ARGUMENTS) import update_res_app as updater updater.run(locator.getAwtkRoot())
def Helper(ARGUMENTS): locator.init(ARGUMENTS) from app_helper_base import AppHelperBase return AppHelperBase(ARGUMENTS)