aboutsummaryrefslogtreecommitdiff
path: root/fix.py
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2021-03-12 21:01:20 +0100
committeralex <alex@pdp7.net>2021-03-12 21:01:20 +0100
commit64f3a2f80b3b71a26a895d5dc3cd96c768248b5e (patch)
tree9489a6c12d257619473511e50f62230fece3ce0f /fix.py
parentb13e466b384de4bc335bef3ed347cb7b81703d5f (diff)
WIP
Diffstat (limited to 'fix.py')
-rwxr-xr-xfix.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/fix.py b/fix.py
index b6fb2220..319d172f 100755
--- a/fix.py
+++ b/fix.py
@@ -27,11 +27,9 @@ def fix():
content += f"{date}\n"
content += "\n".join(old_content_lines[separator_line + 1:])
- import pdb; pdb.set_trace()
-
-# print(new_dir, file)
-# os.makedirs(new_dir, exist_ok=True)
-# shutil.copyfile(, f"{new_dir}/{file}")
+ os.makedirs(new_dir, exist_ok=True)
+ with open(f"{new_dir}/{file}", "w") as new_file:
+ new_file.write(content)
else:
# FIXME
pass