mirror of
https://github.com/clearml/wexpect-venv
synced 2025-01-31 02:46:59 +00:00
fix bugs
fix use pyinstaller package, it will be wrong
This commit is contained in:
parent
d2cf84a9a9
commit
b0d4abdd44
@ -357,7 +357,7 @@ class SpawnBase:
|
||||
wexpect_executable = os.environ['WEXPECT_EXECUTABLE']
|
||||
except KeyError:
|
||||
dirname = os.path.dirname(sys.executable)
|
||||
wexpect_executable = os.path.join(dirname, '..', 'wexpect', 'wexpect.exe')
|
||||
wexpect_executable = os.path.abspath(os.path.join(dirname, '..', 'wexpect', 'wexpect.exe'))
|
||||
|
||||
if not os.path.exists(wexpect_executable):
|
||||
logger.error(f'ExceptionPexpect: Wexpect executable: >>{wexpect_executable}<< not found.')
|
||||
|
Loading…
Reference in New Issue
Block a user