Skip to content

Commit

Permalink
Merge pull request #163 from TheoChem-VU/162-output-of-locally-run-jo…
Browse files Browse the repository at this point in the history
…bs-is-not-captured

162 output of locally run jobs is not captured
  • Loading branch information
SEBeutick authored Mar 12, 2024
2 parents efae7e0 + cbee494 commit f4a92bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tcutility/job/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ 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)
sp.run(self.runfile_path, cwd=os.path.split(self.runfile_path)[0])
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 f4a92bc

Please sign in to comment.