summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-08-10 15:51:35 +0200
committermathieui <mathieui@mathieui.net>2013-08-10 15:51:35 +0200
commit74de91e2bf9b8ed4ddb34b9cacee0e2e9921f6f3 (patch)
treee237315b22f27001cb7e417eb479314f918d4b92
parent518f933fb848848e91456474fb52c153854de95f (diff)
downloadpoezio-74de91e2bf9b8ed4ddb34b9cacee0e2e9921f6f3.tar.gz
poezio-74de91e2bf9b8ed4ddb34b9cacee0e2e9921f6f3.tar.bz2
poezio-74de91e2bf9b8ed4ddb34b9cacee0e2e9921f6f3.tar.xz
poezio-74de91e2bf9b8ed4ddb34b9cacee0e2e9921f6f3.zip
Fix potential issues with import paths
-rw-r--r--src/plugin_manager.py2
-rw-r--r--src/theming.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/plugin_manager.py b/src/plugin_manager.py
index bb139dad..d691b3b5 100644
--- a/src/plugin_manager.py
+++ b/src/plugin_manager.py
@@ -60,7 +60,7 @@ except:
pass
else:
if poezio_plugins.__path__:
- load_path.append(poezio_plugins.__path__[0])
+ load_path.append(list(poezio_plugins.__path__)[0])
if version_info[1] >= 3: # 3.3 & >
from importlib import machinery
diff --git a/src/theming.py b/src/theming.py
index d62b47ae..18115587 100644
--- a/src/theming.py
+++ b/src/theming.py
@@ -427,7 +427,8 @@ def update_themes_dir(option=None, value=None):
except:
pass
else:
- load_path.append(poezio_themes.__path__[0])
+ if poezio_themes.__path__:
+ load_path.append(list(poezio_themes.__path__)[0])
def reload_theme():
theme_name = config.get('theme', 'default')