From 622e1f8e70b364ca63947725e65264baa81e7b39 Mon Sep 17 00:00:00 2001 From: Hunter Allen Date: Fri, 26 Jan 2018 15:15:55 -0500 Subject: [PATCH] Strip the path from the executable name. (#124) --- superflore/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superflore/utils.py b/superflore/utils.py index a524df6f..d3c2ca0d 100644 --- a/superflore/utils.py +++ b/superflore/utils.py @@ -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: