Commit 56e39b12 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Remove legacy code

parent 004786ca
......@@ -24,10 +24,12 @@
from typing import Generator
from typing import Optional # pylint: disable=unused-import
from typing import Tuple
from typing import cast
import os
import sys
import tempfile
import importlib.resources
from pathlib import Path
from gi.repository import GLib
......@@ -118,12 +120,7 @@ def __init__(self) -> None:
self.cache_root = Path(GLib.get_user_cache_dir()) / 'gajim'
self.data_root = Path(GLib.get_user_data_dir()) / 'gajim'
if sys.version_info < (3, 9):
import pkg_resources
basedir = Path(pkg_resources.resource_filename("gajim", "."))
else:
import importlib.resources
basedir = importlib.resources.files('gajim')
basedir = cast(Path, importlib.resources.files('gajim'))
source_paths = [
('DATA', basedir / 'data'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment