Commit 74de91e2 authored by mathieui's avatar mathieui
Browse files

Fix potential issues with import paths

parent 518f933f
......@@ -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
......
......@@ -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')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment