Skip to content

Commit

Permalink
[Core] Add Python executable field to [p]debuginfo command (#3184)
Browse files Browse the repository at this point in the history
* Update core_commands.py

* Create 3184.enhance.rst
  • Loading branch information
Jackenmen authored and Michael H committed Dec 11, 2019
1 parent b6ae7a6 commit 335ded6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/3184.enhance.rst
@@ -0,0 +1 @@
Add Python executable field to `[p]debuginfo` command.
2 changes: 2 additions & 0 deletions redbot/core/core_commands.py
Expand Up @@ -1592,12 +1592,14 @@ async def debuginfo(self, ctx: commands.Context):
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())
Expand Down

0 comments on commit 335ded6

Please sign in to comment.