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 AlsoLibrary for more information on how to integrate it with the standard distutils configuration.
Method __init__ Creates a new library, this is usually called in __init__.py in a toplevel package. All resources will be relative to the root directory.
Method enable_translation Enables translation for a application See Library.enable_translation.
Method run Undocumented
Method _get_main Undocumented

Inherited from Environment (via Library):

Method get_root Undocumented
Method get_log_level Undocumented
Method get_resource_paths Undocumented
Method add_resource Undocumented
Method add_resources Undocumented
Method find_resource Locate a specific resource of called name of type resource
Method _add_extensions Undocumented
Method _add_resource_variable Add resources from an environment variable
Method _get_epydoc Undocumented

Inherited from Environment (via Library):

Method get_root Undocumented
Method get_log_level Undocumented
Method get_resource_paths Undocumented
Method add_resource Undocumented
Method add_resources Undocumented
Method find_resource Locate a specific resource of called name of type resource
Method _add_extensions Undocumented
Method _add_resource_variable Add resources from an environment variable
Method _get_epydoc Undocumented
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.

Parametersnamename of the library
rootroot directory
dirname
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
API Documentation for Kiwi, generated by pydoctor at 2015-12-15 11:23:22.