mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
add update_res_app.py
This commit is contained in:
parent
eeeba0f733
commit
c8dfcb310b
20
scripts/update_res_app.py
Executable file
20
scripts/update_res_app.py
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import os
|
||||
import sys
|
||||
sys.path.append("../awtk/scripts")
|
||||
sys.path.append("../../awtk/scripts")
|
||||
|
||||
import update_res_common as common
|
||||
|
||||
APP_ROOT=os.getcwd()
|
||||
if APP_ROOT.endswith('scripts'):
|
||||
APP_ROOT=os.path.dirname(APP_ROOT)
|
||||
|
||||
os.chdir(APP_ROOT);
|
||||
AWTK_ROOT=common.joinPath(APP_ROOT, '../awtk');
|
||||
ASSETS_ROOT=common.joinPath(APP_ROOT, 'assets')
|
||||
ASSET_C=common.joinPath(APP_ROOT, 'src/assets.c')
|
||||
|
||||
common.init(AWTK_ROOT, ASSETS_ROOT, 'default', ASSET_C);
|
||||
common.updateRes()
|
Loading…
Reference in New Issue
Block a user