1
0
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:
ckie
2025-01-17 21:00:50 +02:00
parent 58fc6d9cf8
commit 952bde6cfa

View File

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