2
0

globals.py 303 B

1234567891011121314
  1. import os
  2. if os.environ.has_key('FREEPY_DEBUG_ON'):
  3. # pull from environment if avail
  4. FREEPY_DEBUG_ON = os.environ['FREEPY_DEBUG_ON']
  5. else:
  6. # fall back to hardcoded value
  7. #FREEPY_DEBUG_ON = False
  8. FREEPY_DEBUG_ON = True
  9. def debug(msg):
  10. if FREEPY_DEBUG_ON:
  11. print msg