From 68b5b7be72fe3387f5fae954d391802944f07c40 Mon Sep 17 00:00:00 2001 From: Tim G Date: Wed, 14 Jan 2015 13:15:38 +1000 Subject: [PATCH] distutils is not available on some non-Linux OS's --- system/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/service.py b/system/service.py index 275bac900a9..fea5722710e 100644 --- a/system/service.py +++ b/system/service.py @@ -106,7 +106,8 @@ import select import time import string -from distutils.version import LooseVersion +if platform.system() == 'Linux': + from distutils.version import LooseVersion class Service(object): """