Python Forum
Python Forum
>
Python Coding
>
General Coding Help
> find my system is single boot or dual boot using python
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.
Sachin_d
Nov-02-2017, 05:51 AM
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
heiner55
Nov-02-2017, 09:17 AM
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
Sachin_d
Nov-02-2017, 09:29 AM
ok thanks
Python Forum
>
Python Coding
>
General Coding Help
> find my system is single boot or dual boot using python