diff options
author | Martin Sivak <msivak@redhat.com> | 2013-03-28 18:49:47 +0100 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2013-03-28 18:49:47 +0100 |
commit | 2710492453d886da03b1597679f5ec862cc48072 (patch) | |
tree | bb90677267c757855536baf4d0dd9eeef3137d40 | |
parent | 57a09894d64dd51f12e5b8b3c635066055e64f90 (diff) | |
download | firstboot2-2710492453d886da03b1597679f5ec862cc48072.tar.gz firstboot2-2710492453d886da03b1597679f5ec862cc48072.tar.xz firstboot2-2710492453d886da03b1597679f5ec862cc48072.zip |
Add addon_paths to sys.path and search for proper UI variant in collect
-rw-r--r-- | initial_setup/__main__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/initial_setup/__main__.py b/initial_setup/__main__.py index 942b3a4..a989003 100644 --- a/initial_setup/__main__.py +++ b/initial_setup/__main__.py @@ -26,7 +26,11 @@ constants.ROOT_PATH = "/" from pyanaconda.addons import collect_addon_paths addon_paths = ["/usr/share/initial-setup/modules", "/usr/share/anaconda/addons"] -addon_module_paths = collect_addon_paths(addon_paths) + +# append ADDON_PATHS dirs at the end +sys.path.extend(addon_paths) + +addon_module_paths = collect_addon_paths(addon_paths, mode) # Too bad anaconda does not have modularized logging from pyanaconda import anaconda_log |