[O] Add automatically generated notice for distro files

#90 #91 #92
This commit is contained in:
Azalea Gui 2023-02-10 23:30:58 -05:00
parent be475f0211
commit a87e2267ea
No known key found for this signature in database
GPG key ID: E289FAC0DA92DD2B
332 changed files with 334 additions and 4 deletions

View file

@ -144,7 +144,8 @@ def export_distro(d: AsciiArt) -> str:
while '"""' in ascii:
ascii = ascii.replace('"""', '"\\""')
script = f"""
script = f"""# This file is automatically generated. Please do not modify.
from . import AsciiArt
{varname} = AsciiArt(match=r'''{d.match}''', color='{d.color}', ascii=r\"""
@ -164,8 +165,8 @@ from . import AsciiArt
def export_distros():
distros = parse_ascii_distros()
# print('\n'.join(d.match for d in distros))
py = """
# This file is automatically generated. Please do not modify.\n
py = """# This file is automatically generated. Please do not modify.
from __future__ import annotations
from . import AsciiArt