mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 13:01:12 +00:00
Initial commit
This commit is contained in:
15
recipes/unilabos/clean_build_dir.py
Normal file
15
recipes/unilabos/clean_build_dir.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import os
|
||||
import shutil
|
||||
for item in os.listdir("../.."):
|
||||
if item.startswith("."):
|
||||
continue
|
||||
if item.endswith(".bat"):
|
||||
continue
|
||||
if item in ("setup.py", "unilabos", "config"):
|
||||
continue
|
||||
print("****", item)
|
||||
if os.path.isfile(item) or os.path.islink(item):
|
||||
os.remove(item)
|
||||
elif os.path.isdir(item):
|
||||
shutil.rmtree(item)
|
||||
print(os.listdir("../.."))
|
||||
Reference in New Issue
Block a user