summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-08 09:52:28 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-08 09:52:28 +0200
commit150feda3f03490b7f3d7e8803165131e47cb316f (patch)
tree5d39d07170b3a2a855360b26adfee387ff04b284
parent78d41b4989be8143fc7f29ee15905416c1d53adc (diff)
downloadpoezio-150feda3f03490b7f3d7e8803165131e47cb316f.tar.gz
poezio-150feda3f03490b7f3d7e8803165131e47cb316f.tar.bz2
poezio-150feda3f03490b7f3d7e8803165131e47cb316f.tar.xz
poezio-150feda3f03490b7f3d7e8803165131e47cb316f.zip
core.commands: Remove implicit conversion from Path to str in /set.
-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[