From 53f071c338def7aab30a6d2ce78c74d14d50e365 Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Sun, 17 Nov 2024 22:22:25 +0000 Subject: [PATCH] fix(core): add fallback to absolute imports in __init__.py --- videoarchiver/core/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/videoarchiver/core/__init__.py b/videoarchiver/core/__init__.py index 7cd0506..dbdfe53 100644 --- a/videoarchiver/core/__init__.py +++ b/videoarchiver/core/__init__.py @@ -1,5 +1,10 @@ """Core module for VideoArchiver cog""" -from .base import VideoArchiver +try: + # Try relative imports first + from .base import VideoArchiver +except ImportError: + # Fall back to absolute imports if relative imports fail + from videoarchiver.core.base import VideoArchiver __all__ = ["VideoArchiver"]