[PyPerforce] how to pass the global options to run command
Status: Beta
Brought to you by:
lewisbaker
From: Zhuang, Y. <yu...@qu...> - 2007-10-04 23:22:24
|
Hello, I'm new to pyperforce. I would like to query Perforce to see if a client spec exists or not. I can use the command line "p4 -u myname -p testserver:1666 -c clientspecName info" to check the Client field in the return to decide if the clientspec , clientspecName, exists or not. When I try to use the run command in pyperforce, p4obj.run('-u', 'myname', '-p', 'testserver:1666', '-c', 'clientspecName', 'info'). I got error back. Can somebody help me on how to pass the global options to a run() command in pyperforce.=20 Thanks, -Yuan |