Add project-tools #142

Merged
Francesco Siddi merged 26 commits from ZedDB/blender-studio-pipeline:project-helper-tools into main 2023-08-31 20:33:04 +02:00
2 changed files with 2 additions and 5 deletions
Showing only changes of commit 3e8b46f7f6 - Show all commits

View File

@ -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)

View File

@ -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)