Load distutils on all platforms EXCEPT Solaris.

Solaris doesn't ship distutils with with the default Python package.  This patch fixes "service" on Solaris since 30d6713.
This commit is contained in:
Tim G 2015-01-16 10:06:36 +10:00
parent 68b5b7be72
commit 8f43a0a4fe

View file

@ -106,7 +106,8 @@ import select
import time import time
import string import string
if platform.system() == 'Linux': # The distutils module is not shipped with SUNWPython on Solaris.
if platform.system() != 'SunOS':
from distutils.version import LooseVersion from distutils.version import LooseVersion
class Service(object): class Service(object):