2011-02-08 10:21:02 +00:00
|
|
|
#! /usr/bin/env python
|
|
|
|
# -*- coding: UTF-8 -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
print '-' * 70
|
|
|
|
print "DEPRECATED: you are starting the OpenERP server with its old path,"
|
|
|
|
print "please use the new executable (available in the parent directory)."
|
|
|
|
print '-' * 70
|
|
|
|
|
|
|
|
# Change to the parent directory ...
|
2011-02-08 10:59:08 +00:00
|
|
|
os.chdir(os.path.normpath(os.path.dirname(__file__)))
|
|
|
|
os.chdir('..')
|
2011-02-08 10:21:02 +00:00
|
|
|
# ... and execute the new executable.
|
2011-03-24 09:50:12 +00:00
|
|
|
os.execv('openerp-server', sys.argv)
|
2011-02-08 10:21:02 +00:00
|
|
|
|
|
|
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|