def getAwtkRoot(ctx):
  if 'awtk_root' in ctx:
    return ctx['awtk_root']
  else:
    import awtk_locator as locator
    locator.init()
    return locator.AWTK_ROOT
Esempio n. 2
0
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())
Esempio n. 3
0
def update_res(ARGUMENTS):
    locator.init(ARGUMENTS)

    import update_res_app as updater
    updater.run(locator.getAwtkRoot())
Esempio n. 4
0
def Helper(ARGUMENTS):
    locator.init(ARGUMENTS)

    from app_helper_base import AppHelperBase
    return AppHelperBase(ARGUMENTS)