code: def inject_colored_exceptions():
      
      #COLORED_INJECTS = '--nocolorex' not in sys.argv
      #COLORED_INJECTS = '--colorex' in sys.argv
      # Ignore colored exceptions on win32
      if VERBOSE:
          print('[inject] injecting colored exceptions')
      if not sys.platform.startswith('win32'):
          if VERYVERBOSE:
              print('[inject] injecting colored exceptions')
          if '--noinject-color' in sys.argv:
              print('Not injecting color')
          else:
              sys.excepthook = colored_pygments_excepthook
      else:
          if VERYVERBOSE:
              print('[inject] cannot inject colored exceptions')
docs: Causes exceptions to be colored if not already
  
      Hooks into sys.excepthook
  
      CommandLine:
          python -m utool.util_inject --test-inject_colored_exceptions
  
      Example:
          >>> # DISABLE_DOCTEST
          >>> from utool.util_inject import *  # NOQA
          >>> print('sys.excepthook = %r ' % (sys.excepthook,))
          >>> #assert sys.excepthook is colored_pygments_excepthook, 'bad excepthook'
          >>> raise Exception('should be in color')