mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-28 13:44:14 -04: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
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class ConfigPluginSpec:
|
||||||
@abx.hookspec
|
@abx.hookspec
|
||||||
@abx.hookimpl
|
@abx.hookimpl
|
||||||
def get_CONFIG() -> dict[abx.PluginId, 'BaseConfigSet | ConstantsDict']:
|
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()}"""
|
"""Get the config for a single plugin -> {plugin_id: PluginConfigSet()}"""
|
||||||
return {
|
return {
|
||||||
'CONSTANTS': CONSTANTS,
|
'CONSTANTS': CONSTANTS,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue