ilogue/fexpect — pull request #19 by jladdjr (2014-01-15 22:09:41+00:00)
Title: Fixed issue with fexpect sending __init__.py to remote system (instead of entire pexpect directory)

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.