From e1592a42607f4b3fca8a43405445b0fcffe8c8b7 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Tue, 17 May 2022 19:13:02 +0300 Subject: [PATCH] Use dotted imports in the storage package to run on python3 --- src/storage/filesystem.py | 2 +- src/storage/sqlite.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/filesystem.py b/src/storage/filesystem.py index 150e8d9e..58e8db19 100644 --- a/src/storage/filesystem.py +++ b/src/storage/filesystem.py @@ -9,7 +9,7 @@ from os import listdir, makedirs, path, remove, rmdir from threading import RLock from paths import lookupAppdataFolder -from storage import InventoryItem, InventoryStorage +from .storage import InventoryItem, InventoryStorage logger = logging.getLogger('default') diff --git a/src/storage/sqlite.py b/src/storage/sqlite.py index 50a2034e..10874332 100644 --- a/src/storage/sqlite.py +++ b/src/storage/sqlite.py @@ -6,7 +6,7 @@ import time from threading import RLock from helper_sql import SqlBulkExecute, sqlExecute, sqlQuery -from storage import InventoryItem, InventoryStorage +from .storage import InventoryItem, InventoryStorage class SqliteInventory(InventoryStorage): # pylint: disable=too-many-ancestors