From fe2c8d814e18cc151b46d5ec26a520c22469c8a5 Mon Sep 17 00:00:00 2001 From: Michael Case Date: Mon, 2 Oct 2017 13:54:34 -0700 Subject: [PATCH] Ensure .tf_configure.bazelrc is written to root of TF repo. Had issues when running configure.py script from outside of TF repo. Ensuring that the .bazelrc file from configure is written to base repo directory. PiperOrigin-RevId: 170748513 --- configure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.py b/configure.py index df2c74d23d8..9ca614f8f9b 100644 --- a/configure.py +++ b/configure.py @@ -30,7 +30,8 @@ try: except ImportError: from distutils.spawn import find_executable as which -_TF_BAZELRC = '.tf_configure.bazelrc' +_TF_BAZELRC = os.path.join(os.path.dirname(os.path.abspath(__file__)), + '.tf_configure.bazelrc') _DEFAULT_CUDA_VERSION = '8.0' _DEFAULT_CUDNN_VERSION = '6' _DEFAULT_CUDA_COMPUTE_CAPABILITIES = '3.5,5.2'