diff --git a/image_creator/winexe.py b/image_creator/winexe.py index b6c00bc3a5c30a96919d9bb40bd0e9282bb3042e..80bdea96587ec5b7c4f09d2ba49c6109d9a8a54d 100644 --- a/image_creator/winexe.py +++ b/image_creator/winexe.py @@ -38,7 +38,7 @@ import subprocess import time import signal -import distutils +from sh import which from image_creator.util import FatalError @@ -53,7 +53,7 @@ class WinEXE: @staticmethod def is_installed(program='winexe'): - return distutils.spawn.find_executable(program) is not None + return which(program) is not None def __init__(self, username, password, hostname, program='winexe'): self._host = hostname