Examples (and tests) for python namespace packages

This commit is contained in:
Mike Romberg 2016-02-12 11:53:23 -07:00
commit ba158e7919
12 changed files with 133 additions and 2 deletions

View file

@ -0,0 +1,9 @@
import sys
# Package brave split into two paths.
# path2/brave/robin.py and path3/brave/_robin.so
sys.path.insert(0, 'path2')
sys.path.insert(0, 'path3')
from brave import robin
assert(robin.run() == "AWAY!")