[PATCH storage] Fix importing of format modules.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



MartinG is going to use imp instead __import__ here, so this is only temporary
solution to make things works again
---
 storage/formats/__init__.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/storage/formats/__init__.py b/storage/formats/__init__.py
index 3cdc908..4aab34d 100644
--- a/storage/formats/__init__.py
+++ b/storage/formats/__init__.py
@@ -107,7 +107,8 @@ def collect_device_format_classes():
             mod_name = module_file[:-3]
             # imputil is deprecated in python 2.6
             try:
-                globals()[mod_name] = __import__(mod_name)
+                globals()[mod_name] = __import__('storage.formats.'+mod_name,
+                                                 fromlist='foo')
             except ImportError, e:
                 log.debug("import of device format module '%s' failed" % mod_name)
 
-- 
1.5.4.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux