mirror of
https://github.com/aclist/dztui.git
synced 2026-10-25 12:12:31 +01:00
docs: add vendored licenses
This commit is contained in:
1 parent
dac02d75f6
commit
3e3a86f985
8 files changed
+986
No files matched your search
@@ -0,0 +1,14 @@
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user