use SOURCES_PATH instead of local git DEPENDS_SOURCES_DIR
This commit is contained in:
parent
3ef6e96fa6
commit
9dfef39e18
|
@ -13,10 +13,15 @@ import os
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
MIRROR_URL_DIR="https://download.z.cash/depends-sources/"
|
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__),
|
os.path.dirname(__file__),
|
||||||
"..", "..", "depends", "sources"
|
"..", "..", "depends", "sources"
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
def get_depends_sources_list():
|
def get_depends_sources_list():
|
||||||
return filter(
|
return filter(
|
||||||
|
|
Loading…
Reference in New Issue