Message146556
Some examples:
>>> import shutil
>>> shutil.shell_call("du -hs {}", "../py*")
594M ../py3k
579M ../py3k_pristine
480M ../python27
301M ../python31
382M ../python32
288K ../python_swallowed_whole
0
>>> shutil.shell_call("du -hs {!q}", "../py*")
du: cannot access `../py*': No such file or directory
1
>>> shutil.shell_call("ls {}", "no file")
ls: cannot access no file: No such file or directory
2
>>> shutil.shell_call("ls {!u}", "no file")
ls: cannot access no: No such file or directory
ls: cannot access file: No such file or directory
2 |
|
Date |
User |
Action |
Args |
2011-10-28 12:31:12 | ncoghlan | set | recipients:
+ ncoghlan, pitrou, eric.araujo, alex, cvrebert |
2011-10-28 12:31:12 | ncoghlan | set | messageid: <1319805072.92.0.46382346926.issue13238@psf.upfronthosting.co.za> |
2011-10-28 12:31:12 | ncoghlan | link | issue13238 messages |
2011-10-28 12:31:12 | ncoghlan | create | |
|