aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.py
diff options
context:
space:
mode:
authorGravatar Michael Case <mikecase@google.com>2017-10-02 13:54:34 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-10-02 14:01:06 -0700
commitfe2c8d814e18cc151b46d5ec26a520c22469c8a5 (patch)
treede5ca9be119097213b9c3135f7059c9e2ce938e2 /configure.py
parent75cac0a5d5b888fdbbbd54a5e90b7e7c8679217e (diff)
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
Diffstat (limited to 'configure.py')
-rw-r--r--configure.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index df2c74d23d..9ca614f8f9 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'