LMIShellConfig Package

class lmi.shell.LMIShellConfig.LMIShellConfig[source]

Class representing the shell’s configuration. The class is responsible for loading the configuration from the file and provides a unified API to access these settings.

Constructs a LMIShellConfig object and loads the configuration from the file. If there is no such file, the shell’s configuration properties are set to default values. Configuration file uses python syntax. If there is a syntax error in the configuration file, the properties are set to default values, as well.

history_file[source]

Property returning a string containing the shell’s history file.

Returns:history file
Return type:string
history_length[source]

Property returning a number with the shell’s history file length.

Returns:history file length
Return type:int
use_cache[source]

Property returning a bool flag, if the shell should use cache for class retrieval.

Returns:flag, if the shell should use a cache
Return type:bool
use_exceptions[source]

Property returning a bool flag, if the shell should throw the exceptions away, or if they should be propagated further.

Returns:flag, if the shell should use exceptions, or throw them away
Return type:bool

Previous topic

LMIInstanceName Package

Next topic

LMIFormatter Package

This Page