Update compound scripts.
Ensure drawable folder is emptied before importing tokens and import again.
This commit is contained in:
parent
b2bb4dcee3
commit
517f990cb0
2 changed files with 15 additions and 14 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue