aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar Michael Case <mikecase@google.com>2018-02-21 20:39:21 -0800
committerGravatar Gunhan Gulsoy <gunan@google.com>2018-02-21 20:39:21 -0800
commit671baf080238025da9698ea980cd9504005f727c (patch)
treeffa7d98ab97a0bb749502dde7a0986b09e9693dd /configure
parent3d68260b2c3e48d9a56d4cbb29241e28312375dc (diff)
Make configure script runnable from external workspace. (#17172)
To run from external workspace, you should now be able to invoke script like the following. This will generate some TensorFlow specfic bazel options and import them into your project's .bazelrc. $(bazel info output_base)/external/org_tensorflow/configure.py --workspace=$(PWD)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 9c21d2b03a..66b66ba54e 100755
--- a/configure
+++ b/configure
@@ -8,7 +8,8 @@ if [ -z "$PYTHON_BIN_PATH" ]; then
fi
# Set all env variables
-"$PYTHON_BIN_PATH" configure.py
+CONFIGURE_DIR=$(dirname "$0")
+"$PYTHON_BIN_PATH" "${CONFIGURE_DIR}/configure.py" "$@"
echo "Configuration finished"