mirror of
https://github.com/clearml/wexpect-venv
synced 2025-01-31 02:46:59 +00:00
Add error hanling in bundled mode
This commit is contained in:
parent
af8d24df1d
commit
031b7caa81
@ -355,6 +355,10 @@ class SpawnBase:
|
||||
dirname = os.path.dirname(sys.executable)
|
||||
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}'
|
||||
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user