Skip to content
Snippets Groups Projects
Commit 9e93b6b0 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

use pathlib methods

parent 624538cc
No related branches found
No related tags found
2 merge requests!13Edit view job,!7Simulator
......@@ -295,9 +295,7 @@ class SimulatorJob(models.Model):
# Function and methods
#########################################################################
def save(self, *args, **kwargs):
if not os.path.isdir(self.job_dir):
os.mkdir(self.job_dir)
os.mkdir(self.results_dir)
self.job_dir.mkdir(parents=True, exist_ok=True)
super().save(*args, **kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment