aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/py_native/bin.py
diff options
context:
space:
mode:
authorGravatar David Chen <dzc@google.com>2016-02-10 12:52:11 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-02-10 16:34:46 +0000
commitea02b8a51fc924755971f78e392100b50d8dc5a2 (patch)
tree54ed40e7e37fa90ce0a4e7d44fb1566e7c147176 /examples/py_native/bin.py
parent847a41816c08b846e09c62834f28fbbcb08d5d6d (diff)
Add imports attribute to Bazel native Python rules to allow adding directories to PYTHONPATH.
Fixes #702 RELNOTES: Add imports attribute to native Python rules. -- MOS_MIGRATED_REVID=114314430
Diffstat (limited to 'examples/py_native/bin.py')
-rw-r--r--examples/py_native/bin.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/py_native/bin.py b/examples/py_native/bin.py
index f79379a237..7b656278f6 100644
--- a/examples/py_native/bin.py
+++ b/examples/py_native/bin.py
@@ -1,4 +1,6 @@
"""A tiny example binary for the native Python rules of Bazel."""
from examples.py_native.lib import GetNumber
+from fib import Fib
print "The number is %d" % GetNumber()
+print "Fib(5) == %d" % Fib(5)