Grab the client directory.
()
| 1407 | |
| 1408 | |
| 1409 | def getClientRoot(): |
| 1410 | """Grab the client directory.""" |
| 1411 | |
| 1412 | output = p4CmdList(["client", "-o"]) |
| 1413 | if len(output) != 1: |
| 1414 | die('Output from "client -o" is %d lines, expecting 1' % len(output)) |
| 1415 | |
| 1416 | entry = output[0] |
| 1417 | if "Root" not in entry: |
| 1418 | die('Client has no "Root"') |
| 1419 | |
| 1420 | return entry["Root"] |
| 1421 | |
| 1422 | |
| 1423 | def wildcard_decode(path): |