diff options
| author | Antony Lesuisse <al@openerp.com> | 2014-05-30 09:55:30 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2014-05-30 09:55:30 +0200 |
| commit | 1f7a2eaf3050d82f53fd27aa724cfc32f246f33a (patch) | |
| tree | 3c1e6d8253f4e34c1edf5b00efc68e0a55f643fd /odoo.py | |
| parent | 2f4984b8381c6407a720b122733242e6cf3101da (diff) | |
[FIX] odoo.py git_locate
Diffstat (limited to 'odoo.py')
| -rwxr-xr-x | odoo.py | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 |
