(no subject)
Remco Gerlich
scarblac at pino.selwerd.nl
Mon Mar 19 19:43:11 EST 2001
Brad Jennings <bjennings at visionael.com> wrote in comp.lang.python:
> I want to execute an executable binary as thought through the Command-Line.
> Python provides some powerful methods in the os package that use very quirky
> syntax. The two methods I've used are "startfile()" and "execv()". Neither
> have performed the action I need.
>
> I'm just trying to execute "ss.exe" and pass it some args but the method
> syntax is laborious and prone to mistakes. Do anyone know of a better way
> to call an executable from a python script without using a function to do
> it?
Without using a function it's not possible.
But what's the problem with using os.system ?!
import os
os.system("ss.exe some args")
--
Remco Gerlich
More information about the Python-list
mailing list