Extend system info with Python and PIO Core executables // Issue #3521

This commit is contained in:
Ivan Kravets
2020-06-23 11:20:29 +03:00
parent a172a17c81
commit 164ae2bcbc

View File

@ -53,6 +53,16 @@ def system_info(json_output):
"title": "PlatformIO Core Directory",
"value": project_config.get_optional_dir("core"),
}
data["platformio_exe"] = {
"title": "PlatformIO Core Executable",
"value": proc.where_is_program(
"platformio.exe" if proc.WINDOWS else "platformio"
),
}
data["python_exe"] = {
"title": "Python Executable",
"value": proc.get_pythonexe_path(),
}
data["global_lib_nums"] = {
"title": "Global Libraries",
"value": len(LibraryManager().get_installed()),