Fixes Setup Script - File Directory

This commit is contained in:
2024-02-18 12:18:30 -03:00
parent bb80173f34
commit 73a6a65ba0

View File

@@ -9,6 +9,7 @@ import os
def write_template(template: str, output: str):
os.makedirs(os.path.dirname(output), exist_ok=True)
with open(template, 'r') as template,\
open(output, 'w') as output:
output.write(envsubst(template.read()))