[IMP] added bin/openerp-server.py as a wrapper for backward compatibility.
bzr revid: vmt@openerp.com-20110208102102-92rfpx6c5midjg5c
This commit is contained in:
parent
45239ae493
commit
6226c1ed44
|
@ -0,0 +1,18 @@
|
|||
#! /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 ...
|
||||
os.chdir(os.path.dirname(os.path.dirname(__file__)))
|
||||
# ... and execute the new executable.
|
||||
os.execv('openerp-server.py', sys.argv)
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
Loading…
Reference in New Issue