Add project-tools #142
@ -6,8 +6,6 @@ import os
|
||||
import pathlib
|
||||
import requests
|
||||
|
||||
DOWNLOAD_DIR = "../../shared/artifacts/addons/"
|
||||
|
||||
|
||||
def download_file(url, out_folder, filename):
|
||||
print("Downloading: " + url)
|
||||
@ -36,7 +34,7 @@ def download_file(url, out_folder, filename):
|
||||
|
||||
|
||||
current_file_folder_path = pathlib.Path(__file__).parent
|
||||
download_folder_path = (current_file_folder_path / DOWNLOAD_DIR).resolve()
|
||||
download_folder_path = (current_file_folder_path / "../../shared/artifacts/addons/").resolve()
|
||||
|
||||
# Ensure that the download directory exists
|
||||
os.makedirs(download_folder_path, exist_ok=True)
|
||||
|
@ -13,7 +13,6 @@ import shutil
|
||||
HOMEPAGE = "https://builder.blender.org/download/"
|
||||
|
||||
BLENDER_BRANCH = "main"
|
||||
DOWNLOAD_DIR = "../../shared/artifacts/blender"
|
||||
|
||||
|
||||
def download_file(url, out_folder):
|
||||
@ -36,7 +35,7 @@ def shasum_matches(file, sha_sum):
|
||||
|
||||
|
||||
current_file_folder_path = pathlib.Path(__file__).parent
|
||||
download_folder_path = (current_file_folder_path / DOWNLOAD_DIR).resolve()
|
||||
download_folder_path = (current_file_folder_path / "../../shared/artifacts/blender").resolve()
|
||||
backup_folder_path = download_folder_path / "previous/current_snapshot"
|
||||
|
||||
os.makedirs(download_folder_path, exist_ok=True)
|
||||
|
Loading…
Reference in New Issue
Block a user