pepper 552 B

12345678910111213141516171819202122
  1. #!/usr/bin/env python
  2. # Import Python Libraries
  3. import logging
  4. # Import Pepper Libraries
  5. import pepper.script
  6. try:
  7. from logging import NullHandler
  8. except ImportError: # Python < 2.7
  9. class NullHandler(logging.Handler):
  10. def emit(self, record): pass
  11. logging.basicConfig(format='%(levelname)s %(asctime)s %(module)s: %(message)s')
  12. logger = logging.getLogger('pepper')
  13. logger.addHandler(NullHandler())
  14. if __name__ == '__main__':
  15. exit_code = pepper.script.Pepper()()
  16. raise SystemExit(exit_code if exit_code is not None else 0)