diff options
author | mathieui <mathieui@mathieui.net> | 2016-10-21 00:20:41 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-10-21 00:20:41 +0200 |
commit | 0bb67982b035a7f158a1999ed86926a71ebd3511 (patch) | |
tree | 0f34b536ffd130577d5f04ae6a5579b4acdf8e0b /poezio/plugin_manager.py | |
parent | ab84756b450b24383f39793060d2057d33f05301 (diff) | |
download | poezio-0bb67982b035a7f158a1999ed86926a71ebd3511.tar.gz poezio-0bb67982b035a7f158a1999ed86926a71ebd3511.tar.bz2 poezio-0bb67982b035a7f158a1999ed86926a71ebd3511.tar.xz poezio-0bb67982b035a7f158a1999ed86926a71ebd3511.zip |
pyflake fixes
unused variables, imports, name shadowing
Diffstat (limited to 'poezio/plugin_manager.py')
-rw-r--r-- | poezio/plugin_manager.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/poezio/plugin_manager.py b/poezio/plugin_manager.py index 11584b23..bebf2133 100644 --- a/poezio/plugin_manager.py +++ b/poezio/plugin_manager.py @@ -271,9 +271,9 @@ class PluginManager(object): """ try: names = set() - for path in self.load_path: + for path_ in self.load_path: try: - add = set(os.listdir(path)) + add = set(os.listdir(path_)) names |= add except: pass @@ -312,9 +312,9 @@ class PluginManager(object): if not plugins_conf_dir: config_home = os.environ.get('XDG_CONFIG_HOME') if not config_home: - config_home = os.path.join(os.environ.get('HOME'), '.config') - plugins_conf_dir = os.path.join(config_home, 'poezio', 'plugins') - self.plugins_conf_dir = os.path.expanduser(plugins_conf_dir) + config_home = path.join(os.environ.get('HOME'), '.config') + plugins_conf_dir = path.join(config_home, 'poezio', 'plugins') + self.plugins_conf_dir = path.expanduser(plugins_conf_dir) self.check_create_plugins_conf_dir() def check_create_plugins_conf_dir(self): @@ -337,11 +337,11 @@ class PluginManager(object): """ plugins_dir = config.get('plugins_dir') plugins_dir = plugins_dir or\ - os.path.join(os.environ.get('XDG_DATA_HOME') or\ - os.path.join(os.environ.get('HOME'), + path.join(os.environ.get('XDG_DATA_HOME') or\ + path.join(os.environ.get('HOME'), '.local', 'share'), 'poezio', 'plugins') - self.plugins_dir = os.path.expanduser(plugins_dir) + self.plugins_dir = path.expanduser(plugins_dir) self.check_create_plugins_dir() def check_create_plugins_dir(self): |