daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest May 17th, 2018 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. run.py
  2. package/
  3.         __init__.py
  4.         logging/
  5.                 __init__.py
  6.         ...
  7.    
  8. from package import main
  9.  
  10. main()
  11.    
  12. from __future__ import absolute_import
  13. import logging
  14. import logging.config
  15.  
  16. def main():
  17.     logging.config.fileConfig(...)
  18.    
  19. class Logging(object):
  20.     pass
  21.    
  22. from __future__ import absolute_import
  23.  
  24. import logging
  25. import logging.config
  26. from package.logging import Logging
  27.  
  28. def main():
  29.     logging.config.fileConfig(...)
  30.    
  31. AttributeError: 'module' object has no attribute 'config'
  32.    
  33. from . import logging
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top