diff options
author | Vijay Vasudevan <vrv@google.com> | 2016-05-26 11:05:13 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-05-26 12:18:27 -0700 |
commit | 8cc567bf9703e14f0e16595eb9f220859a5eff20 (patch) | |
tree | 13694c01d607a2d2d2bad57ae533894214eee7f5 /util/python/python_config.sh | |
parent | 9a69f398e9958d975db0c651e9ec95762b2ff8b4 (diff) |
Merge changes from github.
Change: 123342870
Diffstat (limited to 'util/python/python_config.sh')
-rwxr-xr-x | util/python/python_config.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/util/python/python_config.sh b/util/python/python_config.sh index 83e3856690..7554765003 100755 --- a/util/python/python_config.sh +++ b/util/python/python_config.sh @@ -16,11 +16,16 @@ set -e -o errexit -# Prefix expected paths with ./ locally and external/reponame/ for remote repos. -# TODO(kchodorow): remove once runfiles paths are fixed, see -# https://github.com/bazelbuild/bazel/issues/848. -script_path=$(dirname $(dirname $(dirname "$0"))) -script_path=${script_path:-.} +if [ -d "../org_tensorflow" ]; then + script_path="../org_tensorflow" +else + # Prefix expected paths with ./ locally and external/reponame/ for remote repos. + # TODO(kchodorow): remove once runfiles paths are fixed, see + # https://github.com/bazelbuild/bazel/issues/848. + script_path=$(dirname $(dirname $(dirname "$0"))) + script_path=${script_path:-.} +fi + EXPECTED_PATHS="$script_path/util/python/python_include"\ " $script_path/util/python/python_lib"\ " $script_path/third_party/py/numpy/numpy_include" |