Module pycmdline
source code
pycmdline.py -- Python/CL command line interface for Pyraf
Provides this functionality:
- Command directives:
.logfile [filename [append]]
.exit
.help
.complete [ 1 | 0 ]
.fulltraceback
.clemulate
.debug
- Shell escapes (!cmd, !!cmd to run in /bin/sh)
- CL command-mode execution, triggered by a line that starts with a
CL task token and is not followed by other characters indicating
it is some other kind of Python statement
- Normal Python mode execution (when CL emulation and directives are
not triggered)
Uses standard code module plus some ideas from cmd.py module
(and of course Perry's Monty design.)
$Id: pycmdline.py 1340 2011-01-03 17:25:00Z sontag $
R. White, 2000 February 20
|
|
CmdConsole
Base class for command console.
|
|
|
PyCmdLine
Simple Python interpreter with executive commands
|
|
|
_cmdDict = {'.clemulate': 'do_clemulate', '.debug': 'do_debug'...
|
|
|
__package__ = 'pyraf'
|
Imports:
string,
re,
os,
sys,
code,
keyword,
traceback,
linecache,
capable,
minmatch,
iraf,
irafinst,
wutil,
pyrafDir
_cmdDict
- Value:
{'.clemulate': 'do_clemulate', '.debug': 'do_debug', '.logfile': 'do_l
ogfile', '.complete': 'do_complete', '.exit': 'do_exit', '.help': 'do_
help', '.fulltraceback': 'do_fulltraceback'}
|
|