Update compound scripts.

Ensure drawable folder is emptied before importing tokens and import again.
This commit is contained in:
Benoit Marty 2025-10-03 18:32:55 +02:00 committed by Benoit Marty
parent b2bb4dcee3
commit 517f990cb0
2 changed files with 15 additions and 14 deletions

View file

@ -101,10 +101,10 @@ files = [
def main():
for file in files:
# Open file for read
with open("./compound/src/main/res/drawable/" + file, 'r') as f:
with open("./libraries/compound/src/main/res/drawable/" + file, 'r') as f:
data = f.read().split("\n")
# Open file to write
with open("./compound/src/main/res/drawable/" + file, 'w') as f:
with open("./libraries/compound/src/main/res/drawable/" + file, 'w') as f:
# Write new data
# write the 3 first lines in data
for i in range(3):