mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Update compound scripts.
Ensure drawable folder is emptied before importing tokens and import again.
This commit is contained in:
committed by
Benoit Marty
parent
6b4198d75b
commit
baa5eb0b72
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user