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 734 2006-04-26 18:21:56Z jmiller $
R. White, 2000 February 20
|
|
CmdConsole
Base class for command console.
|
|
|
PyCmdLine
Simple Python interpreter with executive commands
|
|
|
_cmdDict = minmatch.QuietMinMatchDict({'.help': 'do_help', '.c...
|
Imports:
string,
re,
os,
sys,
code,
keyword,
traceback,
linecache,
minmatch,
iraf,
wutil,
pyrafDir
_cmdDict
- Value:
minmatch.QuietMinMatchDict({'.help': 'do_help', '.clemulate': 'do_clem
ulate', '.logfile': 'do_logfile', '.exit': 'do_exit', '.fulltraceback'
: 'do_fulltraceback', '.complete': 'do_complete', '.debug': 'do_debug'
,})
|
|