Fallback to google3 path of sources.json if initial link doesn't work

pull/23697/head
Micah Kornfield 4 years ago
parent a8aeb280be
commit b5efeecf31
  1. 10
      src/boringssl/gen_build_yaml.py

@ -18,9 +18,17 @@ import os
import sys import sys
import yaml import yaml
run_dir = os.path.dirname(sys.argv[0])
sources_path = os.path.abspath( sources_path = os.path.abspath(
os.path.join(os.path.dirname(sys.argv[0]), os.path.join(run_dir,
'../../third_party/boringssl-with-bazel/sources.json')) '../../third_party/boringssl-with-bazel/sources.json'))
try:
with open(sources_path, 'r') as s:
sources = json.load(s)
except IOError:
sources_path = os.path.abspath(
os.path.join(run_dir,
'../../../../third_party/openssl/boringssl/sources.json'))
with open(sources_path, 'r') as s: with open(sources_path, 'r') as s:
sources = json.load(s) sources = json.load(s)

Loading…
Cancel
Save