Fix version writing
This commit is contained in:
parent
1341773369
commit
f894f2ea21
@ -114,7 +114,7 @@ def download_file(edit):
|
|||||||
os.makedirs(os.path.dirname(path))
|
os.makedirs(os.path.dirname(path))
|
||||||
|
|
||||||
# Write VERSION file
|
# Write VERSION file
|
||||||
with open(f"./downloads/{edit['name']}/VERSION", "w") as version_file:
|
with open(f"{DOWNLOAD_PATH}/{edit['name']}/VERSION", "w") as version_file:
|
||||||
version_file.write(edit["version"])
|
version_file.write(edit["version"])
|
||||||
# If file already exists, skip download
|
# If file already exists, skip download
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
|
Loading…
Reference in New Issue
Block a user