Skip to content

Commit

Permalink
XX
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Ballance <matt.ballance@gmail.com>
  • Loading branch information
mballance committed Sep 6, 2024
1 parent 087f47b commit 0fc06f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pytest_fv/tool/hdl/sim/sim_vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ async def run(self, args : HdlSim.RunArgs):
if not os.path.isabs(logfile):
logfile = os.path.join(args.rundir, logfile)

if not os.path.isdir(os.path.dirname(logfile)):
os.makedirs(os.path.dirname(logfile))

with open(logfile, "w") as log:
log.write("** Command: %s\n" % str(cmd))
log.flush()
Expand Down

0 comments on commit 0fc06f2

Please sign in to comment.