From 78d41b4989be8143fc7f29ee15905416c1d53adc Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 8 Jul 2018 09:23:52 +0200 Subject: plugin: Use the provided pathlib.Path. --- poezio/plugin.py | 3 +-- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3