I guess the title sufficiently sums up my question. I have working code to automatically check out a file:
p = Popen(['cleartool', 'co', pathname], stdin = PIPE) p.communicate('comment for checkout')
I'm wondering how to check if the file is already checked out before executing this. Thanks in advance everyone!