mirror of
https://github.com/aclist/dztui.git
synced 2026-11-01 07:32:44 +01:00
chore: update license concat script
This commit is contained in:
1 parent
abdfd2e995
commit
460b07a4c5
1 file changed
+5
-2
@@ -13,11 +13,13 @@ This file includes the combined licenses to the following components:
|
|||||||
- PyGObject
|
- PyGObject
|
||||||
- python-a2s
|
- python-a2s
|
||||||
|
|
||||||
which are collectively bundled as a turnkey application and used to run the DZGUI utility.\n\n
|
When shipped as a binary installer, these components are collectively bundled
|
||||||
|
as a turnkey application and used to run the DZGUI utility.\n\n
|
||||||
"""
|
"""
|
||||||
DZGUI_HEADER = "DZGUI application"
|
DZGUI_HEADER = "DZGUI application"
|
||||||
LICENSE_FILE = "LICENSE"
|
LICENSE_FILE = "LICENSE"
|
||||||
|
|
||||||
|
|
||||||
class CombinedLicense:
|
class CombinedLicense:
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
self.text = BOILERPLATE
|
self.text = BOILERPLATE
|
||||||
@@ -34,10 +36,11 @@ class CombinedLicense:
|
|||||||
def get_text(self) -> str:
|
def get_text(self) -> str:
|
||||||
return self.text
|
return self.text
|
||||||
|
|
||||||
|
|
||||||
def concat_license() -> str:
|
def concat_license() -> str:
|
||||||
combined = CombinedLicense()
|
combined = CombinedLicense()
|
||||||
root = Path(__file__).resolve().parents[1]
|
root = Path(__file__).resolve().parents[1]
|
||||||
licenses = root.joinpath("licenses")
|
licenses = root.joinpath("docs/licenses")
|
||||||
|
|
||||||
main_license = root.joinpath(LICENSE_FILE)
|
main_license = root.joinpath(LICENSE_FILE)
|
||||||
combined.add_header(DZGUI_HEADER)
|
combined.add_header(DZGUI_HEADER)
|
||||||
|
|||||||
Reference in new issue
Block a user