🎨 Using absolute imports

This commit is contained in:
GeoffreyCoulaud
2023-05-19 20:40:33 +02:00
parent 56c110ffa2
commit a176b33241
18 changed files with 59 additions and 70 deletions

View File

@@ -20,6 +20,7 @@
from pathlib import Path
# TODO delegate to the sources
def check_install(check, locations, setting=None, subdirs=(Path(),)):
for location in locations:
for subdir in (Path(),) + subdirs:

View File

@@ -1,13 +1,13 @@
import logging
from pathlib import Path
import logging
import requests
from requests import HTTPError
from gi.repository import Gio
from requests import HTTPError
from . import shared
from .create_dialog import create_dialog
from .save_cover import save_cover, resize_cover
from cartridges.utils.create_dialog import create_dialog
from cartridges.utils.save_cover import resize_cover, save_cover
class SGDBError(Exception):