diff --git a/voussoir.net/writing/generate_site.py b/voussoir.net/writing/generate_site.py index 7ff429e..9616cc6 100644 --- a/voussoir.net/writing/generate_site.py +++ b/voussoir.net/writing/generate_site.py @@ -44,7 +44,7 @@ def write(path, content): if path not in writing_rootdir: raise ValueError(path) print(path.absolute_path) - f = open(path.absolute_path, 'w', encoding='utf-8') + f = path.open('w', encoding='utf-8') f.write(content) f.close()