Mercurial > hg > graal-compiler
diff mxtool/mx.py @ 11807:039b133ded75
fix endless recursion in _find_eclipse_wsroot on windows when eclipse workspace is not in repository path.
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Wed, 25 Sep 2013 16:16:54 +0200 |
parents | f3e5cbd1efae |
children | fbe1ee508936 |
line wrap: on
line diff
--- 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])