Fix bazel 0.5.* support

Change-Id: I751b4fca32964a400bf6875950b2114bf542b981
This commit is contained in:
Paladox none 2017-06-14 17:26:45 +00:00
parent 6add177648
commit 104a6a184e

View File

@ -76,7 +76,10 @@ def build_bower_json(version_targets, seeds):
seeds = set(seeds)
for v in version_targets:
fn = os.path.join("bazel-out/.*?-fastbuild/bin", v.lstrip("/").replace(":", "/"))
try:
fn = os.path.join("bazel-out/local-fastbuild/bin", v.lstrip("/").replace(":", "/"))
except:
fn = os.path.join("bazel-out/darwin_x86_64-fastbuild/bin", v.lstrip("/").replace(":", "/"))
with open(fn) as f:
j = json.load(f)
if "" in j: