# HG changeset patch # User Andreas Woess # Date 1380118614 -7200 # Node ID 039b133ded75725b1930a448afc7e9ab43db8622 # Parent 45e8bf81205d41bb73a6b29211867ef7419ce1b1 fix endless recursion in _find_eclipse_wsroot on windows when eclipse workspace is not in repository path. diff -r 45e8bf81205d -r 039b133ded75 mxtool/mx.py --- a/mxtool/mx.py Wed Sep 25 13:11:10 2013 +0200 +++ b/mxtool/mx.py Wed Sep 25 16:16:54 2013 +0200 @@ -2810,8 +2810,7 @@ if exists(md): return wsdir split = os.path.split(wsdir) - # How to do this for Windows? - if split[0] == '/': + if split[0] == wsdir: # root directory return None else: return _find_eclipse_wsroot(split[0])