comparison 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
comparison
equal deleted inserted replaced
11791:45e8bf81205d 11807:039b133ded75
2808 def _find_eclipse_wsroot(wsdir): 2808 def _find_eclipse_wsroot(wsdir):
2809 md = join(wsdir, '.metadata') 2809 md = join(wsdir, '.metadata')
2810 if exists(md): 2810 if exists(md):
2811 return wsdir 2811 return wsdir
2812 split = os.path.split(wsdir) 2812 split = os.path.split(wsdir)
2813 # How to do this for Windows? 2813 if split[0] == wsdir: # root directory
2814 if split[0] == '/':
2815 return None 2814 return None
2816 else: 2815 else:
2817 return _find_eclipse_wsroot(split[0]) 2816 return _find_eclipse_wsroot(split[0])
2818 2817
2819 def _foobar(val): 2818 def _foobar(val):