update SConscript for del .git

This commit is contained in:
pikastech 2021-12-07 00:31:57 +08:00
parent a37c189931
commit 6a8c046396

View File

@ -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')