[p4] P4Python API
Dix, John
JDix at MedManageSystems.com
Tue Dec 18 09:05:16 PST 2007
Hello I am using the P4 API that Robert Cowham wrote and I have run into
a problem. I am trying to execute a p4 verify -q command and it fails
with an invalid parameter if I use the "-q". Here is the code.
# this file executes a backup procedure of the depots and reports
any failures in email
def VerifyDepots(self):
try:
self.p4Obj.run("verify", "-q //depot/P4Tools/... >
\\logs\\verify.log")
except p4.P4Error:
for err in self.p4Obj.errors:
print err
If I take out the -q it doesn't return any errors but it doesn't
redirect into the verify.log file either.
Any ideas?
Also, is there a P4Python way to execute p4d?
Thanks.
More information about the perforce-user
mailing list