# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 8773 | Lester Cheung | "p4util" as an importable Python package. | ||
#1 | 8534 | Lester Cheung |
Great artists steal - so I'm stealing Sven's Python library to make it better! |
||
//guest/sven_erik_knop/P4Pythonlib/scripts/ConfigGenerator.py | |||||
#2 | 8183 | Sven Erik Knop |
Fixed problems on Windows: P4="p4" usually sufficient (overwrite if p4 not in path) os.linesep instead of "\n" in the regular expression (should have rstrip'd the output instead) |
||
#1 | 8182 | Sven Erik Knop |
ConfigGenerator.py Mark 1 A simple Python tool for P4V that takes four parameters: root PORT CLIENT USER and generates a config file out of it. Requires that P4CONFIG is set either in the environment or registry and accessible from P4V (Mac users need to use p4 set) Also requires a simple custom tool with these parameters: Application: /path/to/ConfigGenerator.py Arguments = $r $p $c $u Run in terminal window recommended for debugging purposes Tested with Python 2.7, but should run with at least 2.6 and 3.X (not tested) |