Check linux distro name
Posted
by Ockonal
on Stack Overflow
See other posts from Stack Overflow
or by Ockonal
Published on 2010-05-03T07:41:24Z
Indexed on
2010/05/03
7:48 UTC
Read the original article
Hit count: 264
Hi guys, I have to get linux distro name from python script. There is dist method in platform module:
import platform
platform.dist()
But it returns
>>> platform.dist()
('', '', '')
Under my Arch Linux. Why? How can I get the name.
p.s. I have to check whether the distro is debian-based.
© Stack Overflow or respective owner