From 335ded674e72f5446efde7ee8806ef45b061eeba Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Wed, 11 Dec 2019 22:40:28 +0100 Subject: [PATCH] [Core] Add Python executable field to `[p]debuginfo` command (#3184) * Update core_commands.py * Create 3184.enhance.rst --- changelog.d/3184.enhance.rst | 1 + redbot/core/core_commands.py | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changelog.d/3184.enhance.rst diff --git a/changelog.d/3184.enhance.rst b/changelog.d/3184.enhance.rst new file mode 100644 index 000000000..b3c488568 --- /dev/null +++ b/changelog.d/3184.enhance.rst @@ -0,0 +1 @@ +Add Python executable field to `[p]debuginfo` command. diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index 763a9391a..970d9eb2d 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -1592,12 +1592,14 @@ class Core(commands.Cog, CoreLogic): e.add_field(name="System arch", value=platform.machine(), inline=True) e.add_field(name="User", value=user_who_ran, inline=True) e.add_field(name="OS version", value=osver, inline=False) + e.add_field(name="Python executable", value=sys.executable, inline=False) await ctx.send(embed=e) else: info = ( "Debug Info for Red\n\n" + "Red version: {}\n".format(redver) + "Python version: {}\n".format(pyver) + + "Python executable: {}\n".format(sys.executable) + "Discord.py version: {}\n".format(dpy_version) + "Pip version: {}\n".format(pipver) + "System arch: {}\n".format(platform.machine())