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
No known key found for this signature in database
GPG key ID: 13E79449C0525215

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,