debug.py 184 B

12345678910111213
  1. import os
  2. try:
  3. DEBUG = bool(os.environ['SCCDDEBUG']=="1")
  4. except KeyError:
  5. DEBUG = False
  6. if DEBUG:
  7. def print_debug(msg):
  8. print(msg)
  9. else:
  10. def print_debug(msg):
  11. pass