5 # Author: Simon Hausmann <hausmann@kde.org>
6 # License: MIT <http://www.opensource.org/licenses/mit-license.php>
8 # executes a p4 command with -G and prints the resulting python dicts
10 import os
, string
, sys
11 import marshal
, popen2
14 for arg
in sys
.argv
[1:]:
17 pipe
= os
.popen("p4 -G %s" % cmd
, "rb")
20 entry
= marshal
.load(pipe
)