Class k.e.Application(Library):

Part of kiwi.environ

Application extends a Library. It's meant to be used by applications

Libraries are usually instantiated in __init__.py in the topmost package in your library, an example usage is kiwi itself which does:

>>> from kiwi.environ import Application
>>> app = Application('gnomovision')
>>> if app.uninstalled:
>>>     app.add_global_resource('glade', 'glade')
>>>     app.add_global_resource('pixmap', 'pixmaps')

If you want to do translations, you also need to do the following:

>>> app.enable_translation()
see NoneLibrary for more information on how to integrate it with the standard distutils configuration.
Function__init__

Creates a new library, this is usually called in __init__.py in a

Function_get_mainUndocumented
Functionenable_translation

Enables translation for a application

FunctionrunUndocumented
def __init__(self, name, root='..', path='main', dirname=None):

Creates a new library, this is usually called in __init__.py in a toplevel package. All resources will be relative to the root directory.

def _get_main(self):
Undocumented
def enable_translation(self, domain=None, localedir=None):

Enables translation for a application See Library.enable_translation.

def run(self):
Undocumented