aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.py
diff options
context:
space:
mode:
authorGravatar Jason Zaman <jason@perfinion.com>2018-08-04 14:28:02 +0800
committerGravatar Jason Zaman <jason@perfinion.com>2018-09-28 23:40:29 +0800
commitd3f6b72bc7356d5c94289e32426dc482b8ededf0 (patch)
treeb05181e6ef46e6ddd49f11c816749affda5a89c9 /configure.py
parenta74a3217f7ff2dbee2fb618aa658cf666861545c (diff)
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 <jason@perfinion.com>
Diffstat (limited to 'configure.py')
-rw-r--r--configure.py6
1 files changed, 1 insertions, 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():