summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/main.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index fefffad5..dcded8d7 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -6,7 +6,6 @@
 import os.path
 import sys
 import tempfile
-import importlib
 
 
 def main():
@@ -304,8 +303,7 @@ def load_settings(fm, clean):
             ranger.fm = fm
             for plugin in sorted(plugins):
                 try:
-                    module = importlib.import_module('plugins.' + plugin)
-                    fm.commands.load_commands_from_module(module)
+                    module = __import__('plugins', fromlist=[plugin])
                     fm.log.append("Loaded plugin '%s'." % plugin)
                 except Exception as e:
                     fm.log.append("Error in plugin '%s'" % plugin)