diff options
author | mathieui <mathieui@mathieui.net> | 2013-08-10 15:51:35 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-08-10 15:51:35 +0200 |
commit | 74de91e2bf9b8ed4ddb34b9cacee0e2e9921f6f3 (patch) | |
tree | e237315b22f27001cb7e417eb479314f918d4b92 /src | |
parent | 518f933fb848848e91456474fb52c153854de95f (diff) | |
download | poezio-74de91e2bf9b8ed4ddb34b9cacee0e2e9921f6f3.tar.gz poezio-74de91e2bf9b8ed4ddb34b9cacee0e2e9921f6f3.tar.bz2 poezio-74de91e2bf9b8ed4ddb34b9cacee0e2e9921f6f3.tar.xz poezio-74de91e2bf9b8ed4ddb34b9cacee0e2e9921f6f3.zip |
Fix potential issues with import paths
Diffstat (limited to 'src')
-rw-r--r-- | src/plugin_manager.py | 2 | ||||
-rw-r--r-- | src/theming.py | 3 |
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') |