Executing Sytem Commands

Oleg Broytmann phd at phd.pp.ru
Fri Feb 9 11:04:55 EST 2001


On Fri, 9 Feb 2001 mix77 at usa.net wrote:
> How do you execute a sytem command  like "mv file1 file2" in Python?

   Exactly like system. It is in module "os". So well:

import os
os.system("xsetbg foo.jpg")

Oleg.
----
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list