parent
be475f0211
commit
a87e2267ea
332 changed files with 334 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue