From f98844660aaed7e0d03683d2739e43fc5c29d3a6 Mon Sep 17 00:00:00 2001 From: "Hunter L. Allen" Date: Tue, 23 Jan 2018 15:06:38 -0500 Subject: [PATCH] Strip the path from the executable name. --- 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: