[FIX] odoo.py git_locate

This commit is contained in:
Antony Lesuisse 2014-05-30 09:55:30 +02:00
parent 2f4984b838
commit 1f7a2eaf30
1 changed files with 3 additions and 5 deletions

View File

@ -50,11 +50,9 @@ def git_locate():
while path != '/':
gitconfig_path = os.path.join(path, '.git/config')
if os.path.isfile(gitconfig_path):
setup_py = os.path.join(path, 'setup.py')
if os.path.isfile(setup_py):
content = open(setup_py).read()
if content.find('release.py') != -1:
break
release_py = os.path.join(path, 'openerp/release.py')
if os.path.isfile(release_py):
break
path = os.path.dirname(path)
if path == '/':
path = None