Skip to content

Commit

Permalink
fix for p4 under Windows (pretty sure this works on other platforms
Browse files Browse the repository at this point in the history
unless "Client unknown." string changes per platform.

fixes #37.
  • Loading branch information
coldnebo committed Nov 4, 2014
1 parent c51dfa7 commit 8573766
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Perforce.py
Expand Up @@ -121,6 +121,10 @@ def GetClientRoot(in_dir):
return -1

# locate the line containing "Client root: " and extract the following path
startindex = result.find("Client unknown.")
if(startindex == 0)
return -1

startindex = result.find("Client root: ")
if(startindex == -1):
# sometimes the clientspec is not displayed
Expand Down

0 comments on commit 8573766

Please sign in to comment.