aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/tools
diff options
context:
space:
mode:
authorGravatar Michael Case <mikecase@google.com>2018-09-04 13:59:25 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-04 14:10:26 -0700
commit8cf8afefdb4c240f74a05e24246c8cd2dcce9d54 (patch)
tree96c100277b843eea2cd331f04b31098a7d77bfae /tensorflow/python/tools
parent44a80cfa262da58d824ed6e0a7a1ffd1eea8a55b (diff)
Internal Change.
PiperOrigin-RevId: 211519679
Diffstat (limited to 'tensorflow/python/tools')
-rw-r--r--tensorflow/python/tools/component_api_helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/tools/component_api_helper.py b/tensorflow/python/tools/component_api_helper.py
index 988ecc61f0..e261758add 100644
--- a/tensorflow/python/tools/component_api_helper.py
+++ b/tensorflow/python/tools/component_api_helper.py
@@ -67,7 +67,7 @@ def package_hook(parent_package_str, child_package_str, error_msg=None):
"""
child_pkg_path = [os.path.join(os.path.dirname(child_pkg.__file__), "..")]
try:
- parent_pkg.__path__ += child_pkg_path
+ parent_pkg.__path__ = child_pkg_path + parent_pkg.__path__
except AttributeError:
parent_pkg.__path__ = child_pkg_path