Show More
@@ -42,8 +42,11 b' def find_exe(cmd):' | |||
|
42 | 42 | except ImportError: |
|
43 | 43 | raise ImportError('you need to have pywin32 installed for this to work') |
|
44 | 44 | else: |
|
45 | (path, offest) = win32api.SearchPath(os.environ['PATH'],cmd) | |
|
46 | return path | |
|
45 | try: | |
|
46 | (path, offest) = win32api.SearchPath(os.environ['PATH'],cmd + '.exe') | |
|
47 | except: | |
|
48 | (path, offset) = win32api.SearchPath(os.environ['PATH'],cmd + '.bat') | |
|
49 | return path | |
|
47 | 50 | |
|
48 | 51 | class ProcessStateError(Exception): |
|
49 | 52 | pass |
@@ -171,7 +174,7 b' class ControllerLauncher(ProcessLauncher):' | |||
|
171 | 174 | |
|
172 | 175 | def __init__(self, extra_args=None): |
|
173 | 176 | if sys.platform == 'win32': |
|
174 |
args = [find_exe('ipcontroller |
|
|
177 | args = [find_exe('ipcontroller')] | |
|
175 | 178 | else: |
|
176 | 179 | args = ['ipcontroller'] |
|
177 | 180 | self.extra_args = extra_args |
@@ -185,7 +188,7 b' class EngineLauncher(ProcessLauncher):' | |||
|
185 | 188 | |
|
186 | 189 | def __init__(self, extra_args=None): |
|
187 | 190 | if sys.platform == 'win32': |
|
188 |
args = [find_exe('ipengine |
|
|
191 | args = [find_exe('ipengine')] | |
|
189 | 192 | else: |
|
190 | 193 | args = ['ipengine'] |
|
191 | 194 | self.extra_args = extra_args |
General Comments 0
You need to be logged in to leave comments.
Login now