Initial commit
This commit is contained in:
15
securecheck/assets.py
Normal file
15
securecheck/assets.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from importlib.resources import files
|
||||
|
||||
|
||||
def asset_path(name: str) -> str:
|
||||
return str(files("securecheck").joinpath("assets", name))
|
||||
|
||||
|
||||
def banner_text() -> str:
|
||||
return files("securecheck").joinpath("assets", "banner.txt").read_text(encoding="utf-8")
|
||||
|
||||
|
||||
def asset_text(name: str) -> str:
|
||||
return files("securecheck").joinpath("assets", name).read_text(encoding="utf-8")
|
||||
Reference in New Issue
Block a user