How to run shell commands within python

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Fri Feb 17 18:24:59 EST 2006


In <donn-2F88D0.10053616022006 at gnus01.u.washington.edu>, Donn Cave wrote:

> You can replace "mv" with os.rename() if you don't
> care that it will fail when the destination is on a different
> filesystem.  Etc.

If you care than use `shutil.move()` instead.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list