summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-08 09:23:52 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-08 09:23:52 +0200
commit78d41b4989be8143fc7f29ee15905416c1d53adc (patch)
tree34166780e5777f193cc38ec4ce1ccd4f8e60d091
parentfe6c8041a10b24b9c2be6f46b032b3f30615b6d5 (diff)
downloadpoezio-78d41b4989be8143fc7f29ee15905416c1d53adc.tar.gz
poezio-78d41b4989be8143fc7f29ee15905416c1d53adc.tar.bz2
poezio-78d41b4989be8143fc7f29ee15905416c1d53adc.tar.xz
poezio-78d41b4989be8143fc7f29ee15905416c1d53adc.zip
plugin: Use the provided pathlib.Path.
-rw-r--r--poezio/plugin.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/poezio/plugin.py b/poezio/plugin.py
index 359f1148..6f671535 100644
--- a/poezio/plugin.py
+++ b/poezio/plugin.py
@@ -3,7 +3,6 @@ Define the PluginConfig and Plugin classes, plus the SafetyMetaclass.
These are used in the plugin system added in poezio 0.7.5
(see plugin_manager.py)
"""
-import os
from functools import partial
from configparser import RawConfigParser
from poezio.timed_events import TimedEvent, DelayedEvent
@@ -387,7 +386,7 @@ class BasePlugin(object, metaclass=SafetyMetaclass):
self.core = core
# More hack; luckily we'll never have more than one core object
SafetyMetaclass.core = core
- conf = os.path.join(plugins_conf_dir, self.__module__ + '.cfg')
+ conf = plugins_conf_dir / (self.__module__ + '.cfg')
try:
self.config = PluginConfig(
conf, self.__module__, default=self.default_config)