[Tutor] Working with bash (subversion)

Luke Paireepinart rabidpoobear at gmail.com
Wed Jul 18 23:16:58 CEST 2007


Justin Cardinal wrote:
> I'm trying to write a program that will list all subversion repository 
> directories, then issue a command using each directory as an argument, 
> then parse those results. So far, I'm able to get a list of the 
> directories...and that's it!
> Here's what I've got so far:
> =========================================
> #!/usr/bin/env python
>  
> import commands as c
As a side note, why is this 'commands' module part of the standard library?
it just appears to wrap os.popen in a very bare way and it is not 
platform-independent.
It seems pretty useless, as far as I can tell.
-Luke


More information about the Tutor mailing list