Can I use Expect on Windows without installing Cygwin?

后端 未结 6 1898
-上瘾入骨i
-上瘾入骨i 2020-12-05 20:15

Expect is a module used for spawning child applications and controlling them. I\'m interested in Python and Ruby.

6条回答
  •  既然无缘
    2020-12-05 20:51

    Use pexpect https://github.com/pexpect/pexpect

    "Pexpect is pure Python" so it will run anywhere, without Cygwin too,

    edit: pexpect depends on pty module which is currently available only for Linux, so as Nik suggested you should be using wexpect which is a port of pexpect

提交回复
热议问题