Skip to content

Commit

Permalink
Remove delete in TempDir to make compatible with more python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferSkare committed Mar 18, 2024
1 parent 94af710 commit 7aa520a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mlfmu/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@ def default_model_file(self):
return MlFmuBuilder._find_default_file(self.root_directory, "onnx", "model")

def default_build_folder(self):
self.temp_folder = self.temp_folder or tempfile.TemporaryDirectory(prefix="mlfmu_", delete=True)
self.temp_folder = self.temp_folder or tempfile.TemporaryDirectory(prefix="mlfmu_")
return Path(self.temp_folder.name) / "build"

def default_build_source_folder(self):
self.temp_folder = self.temp_folder or tempfile.TemporaryDirectory(prefix="mlfmu_", delete=True)
self.temp_folder = self.temp_folder or tempfile.TemporaryDirectory(prefix="mlfmu_")
return Path(self.temp_folder.name) / "src"

def default_generate_source_folder(self):
Expand Down

0 comments on commit 7aa520a

Please sign in to comment.