aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/swig
diff options
context:
space:
mode:
authorGravatar Vijay Vasudevan <vrv@google.com>2016-03-29 18:23:11 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-03-29 19:33:33 -0700
commit80a5a3e653f3b10e2680fe2ea9bc511e8801e273 (patch)
tree6d205c779cde774c46e6aa328a8f7ef0f85a1461 /tensorflow/tools/swig
parente3a0d6fb61cbb1dd9864684c20e49ef3fa385bb6 (diff)
Merge changes from github.
Change: 118532471
Diffstat (limited to 'tensorflow/tools/swig')
-rwxr-xr-xtensorflow/tools/swig/swig.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/tensorflow/tools/swig/swig.sh b/tensorflow/tools/swig/swig.sh
index c35b2ee363..367dcb4cd0 100755
--- a/tensorflow/tools/swig/swig.sh
+++ b/tensorflow/tools/swig/swig.sh
@@ -14,4 +14,12 @@
# limitations under the License.
# ==============================================================================
-swig "$@"
+# If possible, read swig path out of "swig_path" generated by configure
+SWIG=swig
+SWIG_PATH=tensorflow/tools/swig/swig_path
+if [ -e $SWIG_PATH ]; then
+ SWIG=`cat $SWIG_PATH`
+fi
+
+# If this line fails, rerun configure to set the path to swig correctly
+"$SWIG" "$@"