core.commands: Remove implicit conversion from Path to str in /set.
This commit is contained in:
parent
78d41b4989
commit
150feda3f0
1 changed files with 2 additions and 5 deletions
|
@ -6,7 +6,6 @@ import logging
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
import os
|
|
||||||
from xml.etree import cElementTree as ET
|
from xml.etree import cElementTree as ET
|
||||||
|
|
||||||
from slixmpp.exceptions import XMPPError
|
from slixmpp.exceptions import XMPPError
|
||||||
|
@ -571,8 +570,7 @@ class CommandCore:
|
||||||
section = plugin_name
|
section = plugin_name
|
||||||
option = args[1]
|
option = args[1]
|
||||||
if plugin_name not in self.core.plugin_manager.plugins:
|
if plugin_name not in self.core.plugin_manager.plugins:
|
||||||
file_name = self.core.plugin_manager.plugins_conf_dir
|
file_name = self.core.plugin_manager.plugins_conf_dir / (plugin_name + '.cfg')
|
||||||
file_name = os.path.join(file_name, plugin_name + '.cfg')
|
|
||||||
plugin_config = PluginConfig(file_name, plugin_name)
|
plugin_config = PluginConfig(file_name, plugin_name)
|
||||||
else:
|
else:
|
||||||
plugin_config = self.core.plugin_manager.plugins[
|
plugin_config = self.core.plugin_manager.plugins[
|
||||||
|
@ -599,8 +597,7 @@ class CommandCore:
|
||||||
option = args[1]
|
option = args[1]
|
||||||
value = args[2]
|
value = args[2]
|
||||||
if plugin_name not in self.core.plugin_manager.plugins:
|
if plugin_name not in self.core.plugin_manager.plugins:
|
||||||
file_name = self.core.plugin_manager.plugins_conf_dir
|
file_name = self.core.plugin_manager.plugins_conf_dir / (plugin_name + '.cfg')
|
||||||
file_name = os.path.join(file_name, plugin_name + '.cfg')
|
|
||||||
plugin_config = PluginConfig(file_name, plugin_name)
|
plugin_config = PluginConfig(file_name, plugin_name)
|
||||||
else:
|
else:
|
||||||
plugin_config = self.core.plugin_manager.plugins[
|
plugin_config = self.core.plugin_manager.plugins[
|
||||||
|
|
Loading…
Reference in a new issue