From d3f6b72bc7356d5c94289e32426dc482b8ededf0 Mon Sep 17 00:00:00 2001 From: Jason Zaman Date: Sat, 4 Aug 2018 14:28:02 +0800 Subject: configure: use workspace-relative path to tf_configure_bazelrc /.bazelrc is not gitignored anymore so this should help in case the import line is accidentally committed. Bazel 0.18.0 will support a new 'try-import' statement that should be used once 0.18.0 has been out long enough. Signed-off-by: Jason Zaman --- configure.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/configure.py b/configure.py index 55fce8b93b..129d9c5fe7 100644 --- a/configure.py +++ b/configure.py @@ -257,11 +257,7 @@ def reset_tf_configure_bazelrc(workspace_path): if _TF_BAZELRC_FILENAME in l: continue f.write('%s\n' % l) - if is_windows(): - tf_bazelrc_path = _TF_BAZELRC.replace('\\', '/') - else: - tf_bazelrc_path = _TF_BAZELRC - f.write('import %s\n' % tf_bazelrc_path) + f.write('import %%workspace%%/%s\n' % _TF_BAZELRC_FILENAME) def cleanup_makefile(): -- cgit v1.2.3