Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue with fexpect sending __init__.py to remote system (instead of entire pexpect directory) #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jladdjr
Copy link
Contributor

@jladdjr jladdjr commented Jan 15, 2014

Method wrapExpectations() in internals.py is responsible for uploading the pexpect library to the remote system. The current code assumes that pexpect is a single file (pexpect.py) when instead pexpect is a package containing several files (see https://github.com/pexpect/pexpect/tree/master/pexpect). When it tries to locate pexpect, it selects pexpect/init.py instead of the entire folder. When fexpect tries to run the remote script, the script fails to import pexpect and dies.

This commit modifies the code so that it correctly pushes the entire pexpect directory to the remote system.

@JasperVanDenBosch
Copy link
Owner

Hi Jim, appreciate your contribution! Could you give a few more details on when this happens for you? it seems that for most people 'pexpect.py' is picked correctly, and I would prefer just sending one file instead of a whole directory.

@jladdjr
Copy link
Contributor Author

jladdjr commented Apr 9, 2014

Hi back,

I am currently swamped at work and don't have room to go back and get more details on this right now. I know that's not very helpful, but I wanted to at least check in. If I have the chance to look back at this, I'll post an update on this ticket - thanks!!

Jim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants