Skip to content

Commit 64a8b6a

Browse files
kamilkrzyskowsquidfunk
authored andcommitted
Changed info plugin to store more platform information
1 parent 712bc1c commit 64a8b6a

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Diff for: material/plugins/info/plugin.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,13 @@ def on_config(self, config):
135135
json.dumps(
136136
{
137137
"system": platform.platform(),
138-
"python": platform.python_version()
138+
"architecture": platform.architecture(),
139+
"python": platform.python_version(),
140+
"command": " ".join([
141+
sys.argv[0].rsplit(os.sep, 1)[-1],
142+
*sys.argv[1:]
143+
]),
144+
"sys.path": sys.path
139145
},
140146
default = str,
141147
indent = 2

Diff for: src/plugins/info/plugin.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,13 @@ def on_config(self, config):
135135
json.dumps(
136136
{
137137
"system": platform.platform(),
138-
"python": platform.python_version()
138+
"architecture": platform.architecture(),
139+
"python": platform.python_version(),
140+
"command": " ".join([
141+
sys.argv[0].rsplit(os.sep, 1)[-1],
142+
*sys.argv[1:]
143+
]),
144+
"sys.path": sys.path
139145
},
140146
default = str,
141147
indent = 2

0 commit comments

Comments
 (0)