Renamed variable DISTRO to distro_name
Variable DISTRO should be lowercase. I renamed it to distro_name.
This commit is contained in:
parent
997f5b27c5
commit
faff27f0c9
@ -45,9 +45,9 @@ def get_os_name():
|
|||||||
os_name = platform.system().lower()
|
os_name = platform.system().lower()
|
||||||
|
|
||||||
if os_name.startswith('linux'):
|
if os_name.startswith('linux'):
|
||||||
DISTRO = platform.linux_distribution()[0]
|
distro_name = platform.linux_distribution()[0]
|
||||||
if DISTRO:
|
if distro_name:
|
||||||
os_name = os_name + "-%s" % DISTRO.split()[0].lower()
|
os_name = os_name + "-%s" % distro_name.split()[0].lower()
|
||||||
if os.path.exists('/etc/arch-release'):
|
if os.path.exists('/etc/arch-release'):
|
||||||
os_name = "linux-arch"
|
os_name = "linux-arch"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user