View Single Post
Old 12th January 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

If you're going to play with external applications: you should use the subprocess module, not commands. I believe the getstatusoutput() function was also moved to subprocess in py26, and commands is kaput in py30; in favor of subprocess.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote