diff --git a/__init__.py b/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/examples/cmd.py b/examples/cmd.py index 4b76552..cb54cbe 100644 --- a/examples/cmd.py +++ b/examples/cmd.py @@ -1,6 +1,14 @@ # A simple example code for wexpect written in python-2.7 from __future__ import print_function + +import sys +import os + +here = os.path.dirname(os.path.abspath(__file__)) +wexpectPath = os.path.dirname(here) +sys.path.insert(0, wexpectPath) + import wexpect # Path of cmd executable: diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5cd9eeb --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pywin32>=220 \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 377ab50..89a2d8a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,8 +1,8 @@ [metadata] -name = wexpect -author = Noah Spurrier, Richard Holden, Marco Molteni, Kimberley Burchett, Robert Stone, Hartmut Goebel, Chad Schroeder, Erick Tryzelaar, Dave Kirby, Ids vander Molen, George Todd, Noel Taylor, Nicolas D. Cesar, Alexander Gattin, Geoffrey Marshall, Francisco Lourenco, Glen Mabey, Karthik Gurusamy, Fernando Perez, Corey Minyard, Jon Cohen, Guillaume Chazarain, Andrew Ryan, Nick Craig-Wood, Andrew Stone, Jorgen Grahn, Benedek Racz -author-email = betontalpfa@gmail.com -summary = Windows alternative of pexpect +name = wexpect +author = Noah Spurrier, Richard Holden, Marco Molteni, Kimberley Burchett, Robert Stone, Hartmut Goebel, Chad Schroeder, Erick Tryzelaar, Dave Kirby, Ids vander Molen, George Todd, Noel Taylor, Nicolas D. Cesar, Alexander Gattin, Geoffrey Marshall, Francisco Lourenco, Glen Mabey, Karthik Gurusamy, Fernando Perez, Corey Minyard, Jon Cohen, Guillaume Chazarain, Andrew Ryan, Nick Craig-Wood, Andrew Stone, Jorgen Grahn, Benedek Racz +author-email = betontalpfa@gmail.com +summary = Windows alternative of pexpect description-file = README.md description-content-type = text/markdown; charset=UTF-8 requires-python = >=2.6 diff --git a/setup.py b/setup.py index 3e52fe9..1ba9170 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,6 @@ setup( setup_requires=['pbr'], pbr=True, - packages=[''], + # packages=[''], py_modules=['wexpect'], ) \ No newline at end of file