Skip to content

Commit

Permalink
Strip the path from the executable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
allenh1 committed Jan 23, 2018
1 parent 234de34 commit 12c493c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superflore/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def file_pr(overlay, delta, missing_deps, comment):
if comment:
msg += '%s\n' % comment
msg += 'To reproduce this PR, run the following command.\n\n'
msg += '```\n%s\n```' % ' '.join(sys.argv)
args = sys.argv
args[0] = args[0].split('/')[-1]
msg += '```\n%s\n```' % ' '.join(args)
try:
overlay.pull_request('%s\n%s\n%s' % (msg, delta, missing_deps))
except Exception as e:
Expand Down

0 comments on commit 12c493c

Please # to comment.