fix(core): add fallback to absolute imports in commands.py

This commit is contained in:
pacnpal
2024-11-17 22:11:11 +00:00
parent 26f173ce72
commit 6c7f7fd5ad

View File

@@ -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"""