Small changes to berry_custom to better keep the local repository clean (#21491)

* keep berry_custom clean with regards to GIT

* keep .keep
This commit is contained in:
Christian Baars 2024-05-25 09:23:08 +02:00 committed by GitHub
parent c161f63c9a
commit 688f3ffb19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View File

@ -1 +1,4 @@
_temp*
solidify/*
embedded/*

View File

@ -39,10 +39,12 @@ def cleanFolder():
os.remove(join(BERRY_SOLIDIFY_DIR,"src",file))
tempfiles = [f for f in os.listdir(join(BERRY_SOLIDIFY_DIR,"src","embedded")) if ".gitignore" not in f]
for file in tempfiles:
os.remove(join(BERRY_SOLIDIFY_DIR,"src","embedded",file))
if file != ".keep":
os.remove(join(BERRY_SOLIDIFY_DIR,"src","embedded",file))
tempfiles = [f for f in os.listdir(join(BERRY_SOLIDIFY_DIR,"src","solidify")) if ".gitignore" not in f]
for file in tempfiles:
os.remove(join(BERRY_SOLIDIFY_DIR,"src","solidify",file))
if file != ".keep":
os.remove(join(BERRY_SOLIDIFY_DIR,"src","solidify",file))
def addEntryToModtab(source):