from local

This commit is contained in:
dohe0342 2023-01-27 16:38:25 +09:00
parent 0a071ecf27
commit fca11ea2f9
3 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
import os import os
import sys import sys
import re import re
import glob
metafile = sys.argv[1] metafile = sys.argv[1]
outdir = "texts" outdir = "texts"
@ -32,4 +33,4 @@ for string in strings:
# Create a new text file with the filename and write text2 to it # Create a new text file with the filename and write text2 to it
filename = os.path.join(save_dir, filename) filename = os.path.join(save_dir, filename)
with open(f"{filename}.txt", "w") as file: with open(f"{filename}.txt", "w") as file:
file.write(text2) file.write(text2)