[PATCH anaconda-storage] Format modules import fix

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

 



The last patch was importing from a wrong directory
---
 storage/formats/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/formats/__init__.py b/storage/formats/__init__.py
index 3cdc908..66e34fb 100644
--- a/storage/formats/__init__.py
+++ b/storage/formats/__init__.py
@@ -107,7 +107,7 @@ 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__(mod_name, globals(), locals(), [], -1)
             except ImportError, e:
                 log.debug("import of device format module '%s' failed" % mod_name)
 
-- 
1.6.0.6

_______________________________________________
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