diff --git a/tools/eclipse/project.py b/tools/eclipse/project.py index 8bc70deaf7..d8072e2d26 100755 --- a/tools/eclipse/project.py +++ b/tools/eclipse/project.py @@ -139,7 +139,7 @@ def gen_classpath(ext): plugins = set() # Classpath entries are absolute for cross-cell support - java_library = re.compile('bazel-out/local-fastbuild/bin/(.*)/[^/]+[.]jar$') + java_library = re.compile('bazel-out/.*?-fastbuild/bin/(.*)/[^/]+[.]jar$') srcs = re.compile('(.*/external/[^/]+)/jar/(.*)[.]jar') for p in _query_classpath(MAIN): if p.endswith('-src.jar'): diff --git a/tools/js/bower2bazel.py b/tools/js/bower2bazel.py index d12129e1f0..fa928de70e 100755 --- a/tools/js/bower2bazel.py +++ b/tools/js/bower2bazel.py @@ -76,7 +76,7 @@ def build_bower_json(version_targets, seeds): seeds = set(seeds) for v in version_targets: - fn = os.path.join("bazel-out/local-fastbuild/bin", v.lstrip("/").replace(":", "/")) + fn = os.path.join("bazel-out/.*?-fastbuild/bin", v.lstrip("/").replace(":", "/")) with open(fn) as f: j = json.load(f) if "" in j: