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.
Upd: I found here python site, that dist() is deprecated since 2.6
>>> platform.linux_distribution()
('', '', '')