We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27a6a5e commit be57f8fCopy full SHA for be57f8f
tools/accuracy_checker/accuracy_checker/utils.py
@@ -990,7 +990,7 @@ class AtomicWriteFileHandle:
990
def __init__(self, file_path, open_mode):
991
self.target_path = file_path
992
self.mode = open_mode
993
- self.temp_fd, self.temp_path = tempfile.mkstemp()
+ self.temp_fd, self.temp_path = tempfile.mkstemp(dir=os.path.dirname(file_path))
994
self.temp_file = os.fdopen(self.temp_fd, open_mode)
995
996
def write(self, data):
0 commit comments