winspawn unavailabe

199 views
Skip to first unread message

Pythonddr3 Ddr3

unread,
Feb 9, 2012, 10:29:39 PM2/9/12
to winpexpect
hi,all,
i am a new python user,who can help to solve this issues?

PythonWin 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit
(Intel)] on win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin'
for further copyright infor
>>>
>>> from winpexpect import winspawn
>>> child = winspawn('dir')
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
NameError: name 'winspawn' is not defined
>>> c=winspawn("ls")
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
NameError: name 'winspawn' is not defined
>>> c=winspawn('powershell')
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
NameError: name 'winspawn' is not defined
>>>
Reply all
Reply to author
Forward
0 new messages