1
0
mirror of https://github.com/HorlogeSkynet/archey4 synced 2025-04-24 04:00:12 +02:00
Samuel FORESTIER 8de211a39d [MODEL] Prefers EAFP for virt-what/dmidecode calls
This patch drops `os.getuid` usage in `Model`, for virtual environment
  detection.
This way, additional information may be gathered if, for some reasons,
  `virt-what` and/or `dmidecode` can be executed by the process owner.
It also drastically simplifies unit testing.
2021-11-13 10:43:05 +01:00
..