From 5544cf00361b522565c2859ce5224a782dc5eb53 Mon Sep 17 00:00:00 2001 From: jmustonen Date: Wed, 1 Oct 2014 12:28:09 +0300 Subject: [PATCH] [FIX] odoo.py windows compatibility Prevent infinite loop when installing on windows Fixes #2825 Tested to work on * Git Bash v1.9.4 on Windows 8.1 Professional * Ubuntu 12.04.5 LTS --- odoo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odoo.py b/odoo.py index b8f93ad19d5..e5f861baa0b 100755 --- a/odoo.py +++ b/odoo.py @@ -47,14 +47,14 @@ def git_locate(): os.chdir('odoo') path = os.getcwd() - while path != '/': + while path != os.path.abspath(os.sep): gitconfig_path = os.path.join(path, '.git/config') if os.path.isfile(gitconfig_path): release_py = os.path.join(path, 'openerp/release.py') if os.path.isfile(release_py): break path = os.path.dirname(path) - if path == '/': + if path == os.path.abspath(os.sep): path = None return path