]> xn--ix-yja.es Git - alex.git/commitdiff
WIP
authoralex <alex@pdp7.net>
Fri, 12 Mar 2021 20:01:20 +0000 (21:01 +0100)
committeralex <alex@pdp7.net>
Fri, 12 Mar 2021 20:01:20 +0000 (21:01 +0100)
fix.py

diff --git a/fix.py b/fix.py
index b6fb222059eaea14b51557255c137bae20801a0f..319d172f79753716206f86c2f407ca17306c5f1b 100755 (executable)
--- 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