rename plugins_sys base to config

This commit is contained in:
Nick Sweeting 2024-09-24 02:12:30 -07:00
parent e8f1264954
commit 2d19317e3f
No known key found for this signature in database
4 changed files with 6 additions and 6 deletions
archivebox/plugantic

View file

@ -84,7 +84,7 @@ class BasePlugin(BaseModel):
# preserve references to original default objects,
# pydantic deepcopies them by default which breaks mutability
# see https://github.com/pydantic/pydantic/issues/7608
# if we dont do this, then plugins_sys.base.CORE_CONFIG != settings.CONFIGS.CoreConfig for example
# if we dont do this, then plugins_extractor.SINGLEFILE_CONFIG != settings.CONFIGS.SingleFileConfig for example
# and calling .__init__() on one of them will not update the other
self.hooks = self.model_fields['hooks'].default