Guest User

Untitled

a guest
Dec 12th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. > python3
  2. Python 3.4.3 (default, Oct 14 2015, 20:28:29)
  3. [GCC 4.8.4] on linux
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>> import lib.main
  6. >>> lib.main.sayyay()
  7. yay
  8.  
  9. > python3
  10. Python 3.4.3 (default, Oct 14 2015, 20:28:29)
  11. [GCC 4.8.4] on linux
  12. Type "help", "copyright", "credits" or "license" for more information.
  13. >>> import importlib
  14. >>> importlib.import_module("lib.main")
  15. <module 'lib.main' from '/some/path/lib/main.py'>
  16. >>> lib.main.sayyay()
  17. Traceback (most recent call last):
  18. File "<stdin>", line 1, in <module>
  19. NameError: name 'lib' is not defined
Add Comment
Please, Sign In to add comment