From 64a8b6a383a88ab34c1ce8e3dc81161d3ce95f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Krzy=C5=9Bk=C3=B3w?= Date: Thu, 29 Feb 2024 21:39:31 +0100 Subject: [PATCH] Changed info plugin to store more platform information --- material/plugins/info/plugin.py | 8 +++++++- src/plugins/info/plugin.py | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/material/plugins/info/plugin.py b/material/plugins/info/plugin.py index f226f1656..2d021b7d1 100644 --- a/material/plugins/info/plugin.py +++ b/material/plugins/info/plugin.py @@ -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 diff --git a/src/plugins/info/plugin.py b/src/plugins/info/plugin.py index f226f1656..2d021b7d1 100644 --- a/src/plugins/info/plugin.py +++ b/src/plugins/info/plugin.py @@ -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