Fix missing directory error in install

This commit is contained in:
Adam Gausmann 2019-03-10 08:30:17 +00:00
parent 911eddb4ab
commit 3887bc0073

View file

@ -65,6 +65,7 @@ def main():
host=host_config
)
output_path = args.home / template_path.relative_to(templates_dir)
output_path.parent.mkdir(parents=True, exist_ok=True)
with open(output_path, 'w+') as output_file:
output_file.write(output)