mirror of
https://github.com/aclist/dztui.git
synced 2026-08-28 02:37:20 +02:00
15 lines
442 B
Python
15 lines
442 B
Python
from pathlib import Path
|
|
|
|
def concat_license() -> str:
|
|
root = Path(__file__).resolve().parents[1]
|
|
licenses = root.joinpath("licenses")
|
|
combined = ""
|
|
for _dir in licenses.iterdir():
|
|
docs = _dir.glob("*.md")
|
|
doc = list(docs)[0]
|
|
header = f"\n--- The verbatim license for bundled dependency '{_dir.name}' follows ---\n\n"
|
|
combined += header
|
|
combined += doc.read_text()
|
|
return combined
|
|
|