Package configshell :: Module shell
[hide private]
[frames] | no frames]

Module shell


This file is part of ConfigShell.
Copyright (c) 2011-2013 by Datera, Inc

Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.

Classes [hide private]
  ConfigShell
This is a simple CLI command interpreter that can be used both in interactive or non-interactive modes.
Functions [hide private]
 
handle_sigint(signum, frame)
Raise KeyboardInterrupt when we get a SIGINT.
 
locatedExpr(expr)
Variables [hide private]
  tty = False
  locator = Empty().setParseAction(lambda s, l, t: l)
Function Details [hide private]

handle_sigint(signum, frame)

 

Raise KeyboardInterrupt when we get a SIGINT. This is normally done by python, but even after patching pyinstaller 1.4 to ignore SIGINT in the C wrapper code, we still have to do the translation ourselves.