Package libxyz :: Module launcher :: Class Launcher
[hide private]
[frames] | no frames]

Class Launcher

source code

object --+
         |
        Launcher

Startup class

Instance Methods [hide private]
 
__init__(self)
Initialization
source code
 
run(self)
Run commander
source code
 
_set_enc(self)
Try to preset local_encoding using current locale settings.
source code
 
_run(self) source code
 
_create_home(self)
Create .xyzcmd in homedir
source code
 
parse_args(self)
Parse command line arguments
source code
 
init_logger(self)
Initiate Logger object and put it into builtin namespace
source code
 
init_skin(self)
Initialize skin
source code
 
init_keys(self)
Initialize keys manager
source code
 
init_actions(self)
Init action manager
source code
 
parse_configs(self)
Parse configuration
source code
 
_parse_conf_file(self, conf_file)
Parse configuration files, first system then user one if any
source code
 
usage(self)
Show usage
source code
 
version(self)
Show version
source code
 
quit(self)
Quit program
source code
 
error(self, msg, quit=True)
Print error message and optionally quit
source code
 
finalize(self)
Perform shutdown procedures
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initialization

Overrides: object.__init__

_set_enc(self)

source code 

Try to preset local_encoding using current locale settings. After xyz conf is parsed, this value will be overriden by local_encoding from conf, if defined

_parse_conf_file(self, conf_file)

source code 

Parse configuration files, first system then user one if any

Parameters:
  • conf_file - File to parse