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)
Init selected skin
source code
 
parse_configs_1(self)
Parse configuration.
source code
 
parse_configs_2(self)
Parse configuration.
source code
 
_parse_conf_file(self, conf_file)
Parse configuration files, first system then user one if any
source code
 
_parse_skins(self)
Load all skins in system and user home dirs
source code
 
_parse_file(self, file, tmpl=None, error=True)
Parse XYZCommander config
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__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  EVENT_STARTUP = u"event:startup"
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_configs_1(self)

source code 

Parse configuration. Phase 1

parse_configs_2(self)

source code 

Parse configuration. Phase 2

_parse_conf_file(self, conf_file)

source code 

Parse configuration files, first system then user one if any

Parameters:
  • conf_file - File to parse