diff options
author | Martin Sivak <msivak@redhat.com> | 2012-11-08 15:50:21 +0100 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2012-12-17 14:37:31 +0100 |
commit | e9b998cdae5c7ec22f18ecde3dd6447fe015f2c3 (patch) | |
tree | 8cca9d387b59c8bea81262a2541b6e3c59f7d606 /pyanaconda/ui/__init__.py | |
parent | aa363d5e512d7ecd44058fa3d409587da3aa4371 (diff) | |
download | anaconda-e9b998cdae5c7ec22f18ecde3dd6447fe015f2c3.tar.gz anaconda-e9b998cdae5c7ec22f18ecde3dd6447fe015f2c3.tar.xz anaconda-e9b998cdae5c7ec22f18ecde3dd6447fe015f2c3.zip |
Add support for KS %addon section and the API+code to use it
Diffstat (limited to 'pyanaconda/ui/__init__.py')
-rw-r--r-- | pyanaconda/ui/__init__.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pyanaconda/ui/__init__.py b/pyanaconda/ui/__init__.py index 3f39a7a69..9337a2a7d 100644 --- a/pyanaconda/ui/__init__.py +++ b/pyanaconda/ui/__init__.py @@ -63,6 +63,14 @@ class UserInterface(object): basepath = os.path.dirname(__file__) basemask = "pyanaconda.ui" paths = PathDict({}) + + @classmethod + def update_paths(cls, pathdict): + """Receives pathdict and appends it's contents to the current + class defined search path dictionary.""" + for k,v in pathdict.iteritems(): + cls.paths.setdefault(k, []) + cls.paths[k].extend(v) def setup(self, data): """Construct all the objects required to implement this interface. |