Voici les Blěktřs pour schtroumpfer les bidules.

This commit is contained in:
2025-07-27 19:26:27 +02:00
parent 1426ca5fa6
commit ebe9516557
10 changed files with 10712 additions and 0 deletions

14
scripts/subber.py Normal file
View File

@@ -0,0 +1,14 @@
from string import Template
class Subber():
def __init__(self, subs):
self.subs = subs
def sub(self, infile, outfile):
with open(infile) as template:
lines = template.readlines()
data = ''.join(lines)
outfile.write(Template(data).safe_substitute(self.subs))