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. 14
      src/boringssl/gen_build_yaml.py

@ -18,11 +18,19 @@ 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'))
with open(sources_path, 'r') as s: try:
sources = json.load(s) 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:
sources = json.load(s)
def map_dir(filename): def map_dir(filename):

Loading…
Cancel
Save