changeset 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 45e8bf81205d
children 0c4d7b468dd7
files mxtool/mx.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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])