72aaa816cd0b9e55d73c8fb0f44f0996d5dfc574
[odoo/odoo.git] / bin / openerp-server.py
1 #! /usr/bin/env python
2 # -*- coding: UTF-8 -*-
3
4 import os
5 import sys
6
7 if __name__ == "__main__":
8     print '-' * 70
9     print "DEPRECATED: you are starting the OpenERP server with its old path,"
10     print "please use the new executable (available in the parent directory)."
11     print '-' * 70
12
13     # Change to the parent directory ...
14     os.chdir(os.path.dirname(os.path.dirname(__file__)))
15     # ... and execute the new executable.
16     os.execv('openerp-server.py', sys.argv)
17
18 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: