Skip to content

Commit

Permalink
Deal with Paths in command lists
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgate committed Aug 5, 2020
1 parent a4f919a commit 866f11c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,9 @@ def log(self, msg, cmd, cwd=Path.cwd(), live_stdout=False,

# Create a string form of the command to be stored.
if isinstance(cmd, list):
cmd_str = ' '.join(cmd)
cmd_str = ' '.join(str(x) for x in cmd)
else:
cmd_str = cmd
cmd_str = str(cmd)

log = {
'msg': msg,
Expand Down

0 comments on commit 866f11c

Please sign in to comment.