def getClientRoot():
 output = p4CmdList('client -o')
 if (len(output) != 1):
  die(('Output from "client -o" is %d lines, expecting 1' % len(output)))
 entry = output[0]
 if ('Root' not in entry):
  die('Client has no "Root"')
 return entry['Root']

def getClientRoot ( ) : output = p4CmdList ( 'client -o' ) if ( len ( output ) != 1 ) : die ( ( 'Output from "client -o" is %d lines, expecting 1' % len ( output ) ) ) entry = output [ 0 ] if ( 'Root' not in entry ) : die ( 'Client has no "Root"' ) return entry [ 'Root' ]
grab the client directory .