Fix potential issues with import paths
This commit is contained in:
parent
518f933fb8
commit
74de91e2bf
2 changed files with 3 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue