From 1da74a9636e2b70457317a3c16387594977416fb Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 4 Jul 2018 13:28:13 +0200 Subject: Simplify plugins path changes. --- poezio/plugin_manager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'poezio/plugin_manager.py') diff --git a/poezio/plugin_manager.py b/poezio/plugin_manager.py index 8bcb7a3b..15f0db8a 100644 --- a/poezio/plugin_manager.py +++ b/poezio/plugin_manager.py @@ -313,13 +313,13 @@ class PluginManager(object): '', quotify=False) - def on_plugins_dir_change(self, new_value): - self.plugins_dir = new_value + def on_plugins_dir_change(self, _, new_value): + self.plugins_dir = Path(new_value).expanduser() self.check_create_plugins_dir() self.fill_load_path() - def on_plugins_conf_dir_change(self, new_value): - self.plugins_conf_dir = new_value + def on_plugins_conf_dir_change(self, _, new_value): + self.plugins_conf_dir = Path(new_value).expanduser() self.check_create_plugins_conf_dir() def initial_set_plugins_conf_dir(self): -- cgit v1.2.3