mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
migrate plugin loading process to new pluggy-powered system based on djp
This commit is contained in:
parent
efd341d8ad
commit
8ed3155ec5
28 changed files with 690 additions and 321 deletions
12
archivebox/abx/hookspec.py
Normal file
12
archivebox/abx/hookspec.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from pathlib import Path
|
||||
|
||||
from pluggy import HookimplMarker
|
||||
from pluggy import HookspecMarker
|
||||
|
||||
hookspec = HookspecMarker("abx")
|
||||
hookimpl = HookimplMarker("abx")
|
||||
|
||||
|
||||
@hookspec
|
||||
def get_system_user() -> str:
|
||||
return Path('~').expanduser().name
|
Loading…
Add table
Add a link
Reference in a new issue