Files
luban-lite-t3e-pro/packages/third-party/awtk-ui/awtk/3rd/SDL/sync.py
刘可亮 3b4064f334 v1.0.2
2023-11-30 19:48:02 +08:00

25 lines
496 B
Python

#!/usr/bin/python
import os
import glob
import copy
import shutil
import platform
def joinPath(root, subdir):
return os.path.normpath(os.path.join(root, subdir))
# XXX: make sure no no ascii chars in the path name.
SRC_ROOT_DIR=joinPath(os.getcwd(), '../../../3rd/SDL/');
DST_ROOT_DIR=os.getcwd();
def copyFiles(src):
s = joinPath(SRC_ROOT_DIR, src)
d = joinPath(DST_ROOT_DIR, src)
print(s + '->' + d)
shutil.rmtree(d, True)
shutil.copytree(s, d)
copyFiles('src');