How to embed python module in a script -
i have python script meant run standalone tool invoked via:
python tool.py
this requirement tool remain standalone script. issue i'm running i'm replying heavily on module, namely pexpect, , since it's not part of standard python library can't ask users install module via pip or other means , run script.
the script in question commandline tool. there way me package script in such way pulls in code pexpect module? i've tried py2app etc no avail. tool meant run on macs.
any appreciated.
thanks!
you can have pexpect module in directory have tool.py , import should work fine.
Comments
Post a Comment