Changed info plugin to store more platform information

This commit is contained in:
Kamil Krzyśków 2024-02-29 21:39:31 +01:00 committed by Martin Donath
parent 712bc1c137
commit 64a8b6a383
2 changed files with 14 additions and 2 deletions

View File

@ -135,7 +135,13 @@ class InfoPlugin(BasePlugin[InfoConfig]):
json.dumps(
{
"system": platform.platform(),
"python": platform.python_version()
"architecture": platform.architecture(),
"python": platform.python_version(),
"command": " ".join([
sys.argv[0].rsplit(os.sep, 1)[-1],
*sys.argv[1:]
]),
"sys.path": sys.path
},
default = str,
indent = 2

View File

@ -135,7 +135,13 @@ class InfoPlugin(BasePlugin[InfoConfig]):
json.dumps(
{
"system": platform.platform(),
"python": platform.python_version()
"architecture": platform.architecture(),
"python": platform.python_version(),
"command": " ".join([
sys.argv[0].rsplit(os.sep, 1)[-1],
*sys.argv[1:]
]),
"sys.path": sys.path
},
default = str,
indent = 2