Skip to content

Commit

Permalink
The path we were writing to was not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
YHordijk committed Mar 12, 2024
1 parent 24748d6 commit cbee494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tcutility/job/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def run(self):
else:
# if we are not using slurm, we can execute the file. For this we need special permissions, so we have to set that first.
os.chmod(self.runfile_path, stat.S_IRWXU)
with open(f'{self.name}.out', 'w+') as out:
with open(f'{os.path.split(self.runfile_path)[0]}/{self.name}.out', 'w+') as out:
sp.run(self.runfile_path, cwd=os.path.split(self.runfile_path)[0], stdout=out)

def add_preamble(self, line: str):
Expand Down

0 comments on commit cbee494

Please sign in to comment.