Add error hanling in bundled mode

This commit is contained in:
Benedek Racz 2020-04-09 14:44:32 +02:00
parent af8d24df1d
commit 031b7caa81

View File

@ -355,6 +355,10 @@ class SpawnBase:
dirname = os.path.dirname(sys.executable) dirname = os.path.dirname(sys.executable)
wexpect_executable = os.path.join(dirname, '..', 'wexpect', 'wexpect.exe') wexpect_executable = os.path.join(dirname, '..', 'wexpect', 'wexpect.exe')
if not os.path.exists(wexpect_executable):
logger.error(f'ExceptionPexpect: Wexpect executable: >>{wexpect_executable}<< not found.')
raise ExceptionPexpect(f'Wexpect executable: >>{wexpect_executable}<< not found.')
commandLine = f'"{wexpect_executable}" {console_args}' commandLine = f'"{wexpect_executable}" {console_args}'
else: else: