summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/core/commands.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index 7d503fff..e438e095 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -6,7 +6,6 @@ import logging
log = logging.getLogger(__name__)
-import os
from xml.etree import cElementTree as ET
from slixmpp.exceptions import XMPPError
@@ -571,8 +570,7 @@ class CommandCore:
section = plugin_name
option = args[1]
if plugin_name not in self.core.plugin_manager.plugins:
- file_name = self.core.plugin_manager.plugins_conf_dir
- file_name = os.path.join(file_name, plugin_name + '.cfg')
+ file_name = self.core.plugin_manager.plugins_conf_dir / (plugin_name + '.cfg')
plugin_config = PluginConfig(file_name, plugin_name)
else:
plugin_config = self.core.plugin_manager.plugins[
@@ -599,8 +597,7 @@ class CommandCore:
option = args[1]
value = args[2]
if plugin_name not in self.core.plugin_manager.plugins:
- file_name = self.core.plugin_manager.plugins_conf_dir
- file_name = os.path.join(file_name, plugin_name + '.cfg')
+ file_name = self.core.plugin_manager.plugins_conf_dir / (plugin_name + '.cfg')
plugin_config = PluginConfig(file_name, plugin_name)
else:
plugin_config = self.core.plugin_manager.plugins[