def ignore_ctrlc(method):
    """Decorator to make a ProjectKey command ignore Ctrl-C.
       - For a commands that runs programs that want to handle
         Ctrl-C themselves - ipython for instance."""
    method.ignore_ctrlc = True
    return method