Replace os.path with pathlib

This commit is contained in:
Stein Magnus Jodal 2020-03-08 12:32:18 +01:00
parent cd22b5f694
commit a7fdc9f436

View file

@ -1,4 +1,4 @@
import os
import pathlib
from mopidy import config, ext
@ -12,8 +12,7 @@ class SubidyExtension(ext.Extension):
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.path.dirname(__file__), "ext.conf")
return config.read(conf_file)
return config.read(pathlib.Path(__file__).parent / "ext.conf")
def get_config_schema(self):
schema = super().get_config_schema()