[FIX] wrapper script: change the way we go in the upper directory.

bzr revid: vmt@openerp.com-20110208105908-vpkcprw38ufz0x1e
This commit is contained in:
Vo Minh Thu 2011-02-08 11:59:08 +01:00
parent 6226c1ed44
commit 09f1a84797
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@ if __name__ == "__main__":
print '-' * 70
# Change to the parent directory ...
os.chdir(os.path.dirname(os.path.dirname(__file__)))
os.chdir(os.path.normpath(os.path.dirname(__file__)))
os.chdir('..')
# ... and execute the new executable.
os.execv('openerp-server.py', sys.argv)