You can call the command to launch applications or run commands in Python two ways.
With os.system(my_command)
import os
os.system("c:\\windows\\notepad.exe")
Or with popen2.popen3(my_command)
import popen2
popen2.popen3("c:\\windows\\notepad.exe")
Tags: commands, popen2, python, running, tips
This entry was posted
on Friday, May 22nd, 2009 at 7:31 pm and is filed under coding, engineering, technology.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.