summarylogtreecommitdiffstats
path: root/distro.patch
blob: 6e81033025a81fa47c83d0959b23c5b3181d0f99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git src/e3/os/platform.py src/e3/os/platform.py
index 94964a6..5694ec8 100644
--- src/e3/os/platform.py
+++ src/e3/os/platform.py
@@ -73,12 +73,12 @@ class SystemInfo(object):
 
         # Fetch linux distribution info on linux OS
         if cls.uname.system == "Linux":  # linux-only
-            import ld
+            import distro
 
             cls.ld_info = {
-                "name": ld.name(),
-                "major_version": ld.major_version(),
-                "version": ld.version(),
+                "name": distro.name(),
+                "major_version": distro.major_version(),
+                "version": distro.version(),
             }
 
         # Fetch network interfaces