micropython

Annotated tests/importer_package_local.py

802:56b09bd4db2a
2014-06-01 Paul Boddie Made package imports fail properly when submodules cannot be found. syspython-as-target
paul@363 1
#!/usr/bin/env python
paul@363 2
paul@363 3
import imported_package
paul@363 4
paul@363 5
def f():
paul@363 6
    return imported_package.attribute
paul@363 7
paul@363 8
result_123 = f()
paul@363 9
paul@363 10
# vim: tabstop=4 expandtab shiftwidth=4