in scripts/icon-builder.py [0:0]
def create_category_all_file(path):
"""Create an 'all.puml' file with contents of files in path"""
data = ""
for f in sorted(path.glob("*.puml")):
with open(f, "r") as read_file:
data += read_file.read() + "\n"
# Filter out individual copyright statements and add single copyright to top of file
content = ""
for line in data.splitlines():
if not line.startswith("'"):
content += line + "\n"
content = PUML_COPYRIGHT + content
with open(f"{path}/all.puml", "w") as all_file:
all_file.write(content)
return