From 00ddbf985a8a80db69fa41bff28692ce308d8d9d Mon Sep 17 00:00:00 2001 From: Beq Date: Mon, 16 Sep 2024 12:47:16 +0100 Subject: [PATCH] try again on path, and cleanup unused helper --- fsutils/build_config.py | 2 +- fsutils/download_list.py | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/fsutils/build_config.py b/fsutils/build_config.py index 0e02ceb837..6b8fe8c97f 100644 --- a/fsutils/build_config.py +++ b/fsutils/build_config.py @@ -3,7 +3,7 @@ import json class BuildConfig: - def __init__(self, config_file='build_config.json'): + def __init__(self, config_file='./fsutils/build_config.json'): with open(config_file, 'r') as f: config_data = json.load(f) diff --git a/fsutils/download_list.py b/fsutils/download_list.py index 9167dd5ad6..28edb31db9 100644 --- a/fsutils/download_list.py +++ b/fsutils/download_list.py @@ -27,17 +27,6 @@ def generate_secret(secret_key): secret_for_api = hashlib.sha1(data.encode()).hexdigest() return secret_for_api -def map_build_type(build_variant): - # Map your build_variant to the API's build_type values - build_type_mapping = { - 'Release': 'regular', - 'Beta': 'beta', - 'Alpha': 'alpha', - 'Nightly': 'nightly', - # Add other mappings if necessary - } - return build_type_mapping.get(build_variant, 'regular') - # run a command line subshell and return the output # We want to get the following output by looping over the files