Skip to content

Commit

Permalink
Strip the path from the executable name. (ros-infrastructure#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
allenh1 authored Jan 26, 2018
1 parent ca11b85 commit 622e1f8
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 622e1f8

Please sign in to comment.