From 6c7f7fd5ad044581816a5ea2acfae53048d3bc2c Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Sun, 17 Nov 2024 22:11:11 +0000 Subject: [PATCH] fix(core): add fallback to absolute imports in commands.py --- videoarchiver/core/commands.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/videoarchiver/core/commands.py b/videoarchiver/core/commands.py index 3784193..50c9ff1 100644 --- a/videoarchiver/core/commands.py +++ b/videoarchiver/core/commands.py @@ -6,7 +6,10 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: - from .base import VideoArchiver + try: + from .base import VideoArchiver + except ImportError: + from videoarchiver.core.base import VideoArchiver def setup_commands(cog: "VideoArchiver") -> None: """Command setup is now handled in the VideoArchiver class"""