Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
fix use pyinstaller  package,  it will be wrong
  • Loading branch information
CatSlave007 authored and raczben committed Jan 31, 2021
1 parent d2cf84a commit b0d4abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wexpect/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def startChild(self, args, env):
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.')
Expand Down

0 comments on commit b0d4abd

Please sign in to comment.