Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > python3
- Python 3.4.3 (default, Oct 14 2015, 20:28:29)
- [GCC 4.8.4] on linux
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import lib.main
- >>> lib.main.sayyay()
- yay
- > python3
- Python 3.4.3 (default, Oct 14 2015, 20:28:29)
- [GCC 4.8.4] on linux
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import importlib
- >>> importlib.import_module("lib.main")
- <module 'lib.main' from '/some/path/lib/main.py'>
- >>> lib.main.sayyay()
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- NameError: name 'lib' is not defined
Add Comment
Please, Sign In to add comment