Skip to content

Commit faa2a1e

Browse files
committed
remove temp folder
1 parent 483a77d commit faa2a1e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tools/send_to_data_team.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import argparse
22
import pickle
3-
import tempfile
43
from collections import defaultdict
54
from datetime import datetime
65
from pathlib import Path
@@ -34,10 +33,12 @@ def run(self):
3433

3534
start_str = str(start).replace(" ", "_").replace(":", "")
3635
file_name = f"pytorch_{start_str}.json"
37-
with tempfile.TemporaryDirectory() as d:
38-
file_path = Path(d) / file_name
39-
self.write_file(pydantic_objects, file_path)
40-
self.send_file(file_path)
36+
folder_path = Path("~/data_team")
37+
folder_path.mkdir(parents=True, exist_ok=True)
38+
file_path = folder_path / file_name
39+
40+
self.write_file(pydantic_objects, file_path)
41+
self.send_file(file_path)
4142

4243
def send_file(self, file_path: Path):
4344
"""

0 commit comments

Comments
 (0)