mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 02:41:06 -05:00
fix(core): add fallback to absolute imports in __init__.py
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user