Skip to content

Commit

Permalink
Changed info plugin to store more platform information
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkrzyskow authored and squidfunk committed Mar 5, 2024
1 parent 712bc1c commit 64a8b6a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion material/plugins/info/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,13 @@ def on_config(self, config):
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
Expand Down
8 changes: 7 additions & 1 deletion src/plugins/info/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,13 @@ def on_config(self, config):
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
Expand Down

0 comments on commit 64a8b6a

Please sign in to comment.