[Tutor] os.system
jtl999
jacksmoo111 at gmail.com
Sat Dec 18 01:07:31 CET 2010
I want to pass a variable to os.system which is dir
>>> dir=raw_input ("Dir Please ")
Dir Please /
ok dir = /
>>> os.system ("ls" + dir)
sh: ls/: No such file or directory
32512
any advice
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/tutor/attachments/20101217/93cc76bd/attachment.pgp>
More information about the Tutor
mailing list