mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-18 04:11:57 +02:00
spec-config: fix CONSTANTS import
I was getting: ImportError: cannot import name 'CONSTANTS' from partially initialized module 'archivebox' (most likely due to a circular import) (/nix/store/6fy0wgy7r3ld3k590kxgxrc0r1cca347-archivebox-0.8.6rc3/lib/python3.12/site-packages/archivebox/__init__.py)
This commit is contained in:
@@ -33,7 +33,7 @@ class ConfigPluginSpec:
|
||||
@abx.hookspec
|
||||
@abx.hookimpl
|
||||
def get_CONFIG() -> dict[abx.PluginId, 'BaseConfigSet | ConstantsDict']:
|
||||
from archivebox import CONSTANTS
|
||||
from archivebox.config import CONSTANTS
|
||||
"""Get the config for a single plugin -> {plugin_id: PluginConfigSet()}"""
|
||||
return {
|
||||
'CONSTANTS': CONSTANTS,
|
||||
|
Reference in New Issue
Block a user