♻️ Changed shared imports to absolute

This commit is contained in:
GeoffreyCoulaud
2023-05-21 18:11:02 +02:00
parent dd37fda07b
commit f246a73b19
13 changed files with 14 additions and 13 deletions

View File

@@ -25,7 +25,7 @@ from gi.repository import Adw, Gio, GLib, Gtk
from PIL import Image
# TODO use SGDBHelper
from . import shared
import src.shared
from src.game import Game
from src.game_cover import GameCover
from src.utils.create_dialog import create_dialog

View File

@@ -26,7 +26,7 @@ from time import time
from gi.repository import Adw, Gio, Gtk
from . import shared
import src.shared
from src.game_cover import GameCover

View File

@@ -22,7 +22,7 @@ from time import time
import yaml
from . import shared
import src.shared
from src.utils.check_install import check_install

View File

@@ -23,7 +23,7 @@ from hashlib import sha256
from pathlib import Path
from time import time
from . import shared
import src.shared
from src.utils.check_install import check_install

View File

@@ -26,7 +26,7 @@ from time import time
import requests
from gi.repository import GdkPixbuf, Gio
from . import shared
import src.shared
from src.utils.check_install import check_install
from src.utils.save_cover import resize_cover

View File

@@ -22,7 +22,7 @@ from shutil import copyfile
from sqlite3 import connect
from time import time
from . import shared
import src.shared
from src.utils.check_install import check_install

View File

@@ -25,7 +25,7 @@ from time import time
import requests
from gi.repository import Gio
from . import shared
import src.shared
from src.utils.check_install import check_install

View File

@@ -29,7 +29,7 @@ gi.require_version("Adw", "1")
# pylint: disable=wrong-import-position
from gi.repository import Adw, Gio, GLib, Gtk
from . import shared
import src.shared
from src.details_window import DetailsWindow
from src.importer.importer import Importer
from src.importer.sources.lutris_source import (

View File

@@ -24,7 +24,8 @@ from pathlib import Path
from gi.repository import Adw, Gio, GLib, Gtk
# pylint: disable=unused-import
from . import shared
import src.shared
# TODO use the new sources
from src.importers.bottles_importer import bottles_installed
from src.importers.heroic_importer import heroic_installed

View File

@@ -19,7 +19,7 @@
from gi.repository import Adw, GLib, Gtk
from . import shared
import src.shared
from .create_dialog import create_dialog
from .game import Game
from .save_cover import resize_cover, save_cover

View File

@@ -24,7 +24,7 @@ from shutil import copyfile
from gi.repository import Gio
from PIL import Image, ImageSequence
from . import shared
import src.shared
def resize_cover(cover_path=None, pixbuf=None):

View File

@@ -5,7 +5,7 @@ import requests
from gi.repository import Gio
from requests import HTTPError
from . import shared
import src.shared
from src.utils.create_dialog import create_dialog
from src.utils.save_cover import resize_cover, save_cover

View File

@@ -22,7 +22,7 @@ from datetime import datetime
from gi.repository import Adw, Gio, GLib, Gtk
from . import shared
import src.shared
from src.game import Game