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.
# brave/robin.py (in path4.zip) and path3/brave/_robin.so
sys.path.insert(0, 'path4.zip')
sys.path.insert(0, 'path3')
from brave import robin
assert(robin.run() == "AWAY!")