generate temp folder

This commit is contained in:
Jason
2022-04-03 12:07:26 -07:00
parent 91437f30f5
commit 1b20c97d84
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -57,6 +57,8 @@ def csv_append_row(tmp_preds, preds_filename, with_headers=True):
def generate_tmp_filename(extension):
if not os.path.isdir('temp'):
os.mkdir('temp')
return "temp/" + next(tempfile._get_candidate_names()) + "." + extension