Updating CVS

Mike uptonothing at yahoo.com
Mon Apr 7 18:35:13 CEST 2003


Hello,

I wrote the following python web script to update a CVS directory and I
don't receive any errors when executing it; however, the directory doesn't
update.

#!/usr/bin/python

import cgi, os, urllib, sys

print 'Content-type: text/html\n'

sys.stderr = sys.stdout

os.environ["CVSROOT"] = "/path/to/CVS"
os.chdir("/directory/that/needs/updating")
print os.system("/usr/bin/cvs -q update -P -A -d")
...

Could someone suggest a way that I might get this script to work.

Thanks,
Mike






More information about the Python-list mailing list