mirror of
https://github.com/zebrajr/ArchiveBox.git
synced 2025-12-06 12:20:54 +01: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:
parent
58fc6d9cf8
commit
952bde6cfa
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user