Skip to content

Commit 6edcac6

Browse files
authored
Fix two small errors in abx-{readwise,spec-config} (ArchiveBox#1635)
2 parents aa55e0d + 952bde6 commit 6edcac6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

archivebox/pkgs/abx-plugin-readwise/abx_plugin_readwise.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515

1616
from abx_spec_config.base_configset import BaseConfigSet
1717

18-
SOURCES_DIR = abx.pm.hook.get_CONFIG().SOURCES_DIR
19-
18+
from archivebox.config import CONSTANTS
2019

2120
class ReadwiseConfig(BaseConfigSet):
22-
READWISE_DB_PATH: Path = Field(default=SOURCES_DIR / "readwise_reader_api.db")
21+
READWISE_DB_PATH: Path = Field(default=CONSTANTS.SOURCES_DIR / "readwise_reader_api.db")
2322
READWISE_READER_TOKENS: Dict[str, str] = Field(default=lambda: {}) # {<username>: <access_token>, ...}
2423

2524

archivebox/pkgs/abx-spec-config/abx_spec_config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_system_config_path() -> Path:
3333
@abx.hookspec
3434
@abx.hookimpl
3535
def get_CONFIG() -> dict[abx.PluginId, 'BaseConfigSet | ConstantsDict']:
36-
from archivebox import CONSTANTS
36+
from archivebox.config import CONSTANTS
3737
"""Get the config for a single plugin -> {plugin_id: PluginConfigSet()}"""
3838
return {
3939
'CONSTANTS': CONSTANTS,

0 commit comments

Comments
 (0)