use SOURCES_PATH instead of local git DEPENDS_SOURCES_DIR

This commit is contained in:
ANISH M 2023-04-07 19:26:33 +05:30 committed by GitHub
parent 3ef6e96fa6
commit 9dfef39e18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -13,10 +13,15 @@ import os
import requests
MIRROR_URL_DIR="https://download.z.cash/depends-sources/"
DEPENDS_SOURCES_DIR=os.path.realpath(os.path.join(
try:
DEPENDS_SOURCES_DIR = os.environ['SOURCES_PATH']
except KeyError:
DEPENDS_SOURCES_DIR=os.path.realpath(os.path.join(
os.path.dirname(__file__),
"..", "..", "depends", "sources"
))
))
def get_depends_sources_list():
return filter(