2012-05-10 | Paul Boddie | file changeset files shortlog | Changed the builtins module loading to use the module search path. This makes it easier to run the test program from another location. Added a note about relative imports. |
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 |