Executing an external command

Aaron Bentley aaron at aaronbentley.com
Wed Mar 26 05:37:13 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Xavier Maillard wrote:
> What is the correct way to call an external tool from a bzr
> python module ?

subprocess.call is the simple way.  subprocess.Popen provides maximum
flexibility.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH6eEJ0F+nu1YWqI0RAr6TAJwKmwA++r94LIFlzUj/gzh2NfCkHwCeKZ7F
9p8GR3La3pjCAW8aeS5WVJ4=
=+C+I
-----END PGP SIGNATURE-----



More information about the bazaar mailing list