summaryrefslogtreecommitdiff
path: root/whatmaps/distro.py
diff options
context:
space:
mode:
Diffstat (limited to 'whatmaps/distro.py')
-rw-r--r--whatmaps/distro.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/whatmaps/distro.py b/whatmaps/distro.py
index a575a70..f0f08eb 100644
--- a/whatmaps/distro.py
+++ b/whatmaps/distro.py
@@ -95,8 +95,8 @@ class Distro(object):
def detect():
return detect()
-import debiandistro
-import redhatdistro
+import whatmaps.debiandistro
+import whatmaps.redhatdistro
def detect():
"""
@@ -119,16 +119,16 @@ def detect():
# id is None in this case
pass
- if id == debiandistro.DebianDistro.id:
- return debiandistro.DebianDistro
- elif id == redhatdistro.FedoraDistro.id:
- return redhatdistro.FedoraDistro
+ if id == whatmaps.debiandistro.DebianDistro.id:
+ return whatmaps.debiandistro.DebianDistro
+ elif id == whatmaps.redhatdistro.FedoraDistro.id:
+ return whatmaps.redhatdistro.FedoraDistro
else:
if os.path.exists('/usr/bin/dpkg'):
logging.warning("Unknown distro but dpkg found, assuming Debian")
- return debiandistro.DebianDistro
+ return whatmaps.debiandistro.DebianDistro
elif os.path.exists('/bin/rpm'):
logging.warning("Unknown distro but rpm found, assuming Fedora")
- return debiandistro.FedoraDistro
+ return whatmaps.debiandistro.FedoraDistro
else:
return None