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 6b4198d75b
commit baa5eb0b72
2 changed files with 15 additions and 14 deletions
+2 -2
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):