Home | Trees | Index | Help |
|
---|
Package yagdoc :: Module tool |
|
Function Summary | |
---|---|
Print a fatal error, prefixed with FATAL: and terminate
the program. | |
get_from_config(*variables)
| |
OptionParser
|
Create an optparse option parser. |
Print an informational message, prefixed with tool-name:. | |
OptionParser
|
Initialize tool. |
Import yagdoc_config.py as config . | |
Print a warning, unprefixed, meant for gcc-style error messages referring to source files. | |
_message(message,
prefix,
kwargs)
| |
_set_data_dir()
|
Variable Summary | |
---|---|
str |
config_dir : The directory of to yagdoc_config.py . |
str |
data_dir : Data directory where xhtml.xsl and other files are
located. |
str |
help_usage : Command line help usage string (empty by default). |
int |
log_level : The highest level of log messages to print (higher means more
messages). |
str |
name : Name of the current tool. |
Function Details |
---|
fatal(message, **kwargs)Print a fatal error, prefixed with Program is terminated with error code 1. New-line ('\n' ) is appended to the message if it does
not end with a new-line.
|
get_option_parser()Create an Usage and version are initialized according to yagdoc version and
|
info(message, **kwargs)Print an informational message, prefixed with tool-name:. New-line ('\n' ) is appended to the message if it does
not end with a new-line.
|
init(self=None, **variables)Initialize tool.
|
swallow_config()Import The current directory is temporarily made the first
|
warning(message)Print a warning, unprefixed, meant for gcc-style error messages referring to source files. New-line ('\n' ) is appended to the message if it does
not end with a new-line.
|
Variable Details |
---|
config_dirThe directory of toyagdoc_config.py . The default it
'.' .
|
data_dirData directory wherexhtml.xsl and other files are
located. This is normally version.datadir but if we were relocated,
it can be also a path determined from the location of this module. It is
set by init .
|
log_levelThe highest level of log messages to print (higher means more messages). One of:
|
nameName of the current tool. The default is the base name ofsys.argv[0] with the first extension removed (if present).
If a different tool name is set, it should be done before loading the
config so that it sees the correct value.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Oct 5 00:36:53 2007 | http://epydoc.sf.net |