Python Forum

Full Version: find my system is single boot or dual boot using python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
import platform
platform.uname()


This code gives me my current running os but i want to know whether my system is single boot or dual boot
I think, there is no general method.
For Windows, you could see into boot.ini (bcdedit.exe)
For Linux, you could see into the grup etc files, if your system uses grup.

For others answers, see
https://stackoverflow.com/questions/4706...ing-python
ok thanks