mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
update SConscript for del .git
This commit is contained in:
parent
a37c189931
commit
6a8c046396
12
SConscript
12
SConscript
@ -20,14 +20,10 @@ def pikascript_init():
|
||||
mycopyfile(cwd + '/port/rt-thread/requestment.txt', cwd + '/requestment.txt')
|
||||
|
||||
def myremove(path):
|
||||
try:
|
||||
shutil.rmtree(cwd + '/' + path)
|
||||
except OSError:
|
||||
pass
|
||||
try:
|
||||
os.remove(cwd + '/' + path)
|
||||
except OSError:
|
||||
pass
|
||||
all_path = cwd + '\\' + path
|
||||
print ( 'remove ' + all_path)
|
||||
os.system('del ' + all_path + ' /F /Q /S')
|
||||
os.system('rd ' + all_path + ' /Q /S')
|
||||
|
||||
myremove('bsp')
|
||||
myremove('document')
|
||||
|
Loading…
x
Reference in New Issue
Block a user