From b0d4abdd44deb11ac47e4450a8c2137cbb240c72 Mon Sep 17 00:00:00 2001 From: CatSlave007 Date: Thu, 28 Jan 2021 11:12:49 +0800 Subject: [PATCH] fix bugs fix use pyinstaller package, it will be wrong --- wexpect/host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wexpect/host.py b/wexpect/host.py index d8eea83..e6a79e3 100644 --- a/wexpect/host.py +++ b/wexpect/host.py @@ -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.')