summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorVo Minh Thu <vmt@openerp.com>2011-02-08 11:21:02 +0100
committerVo Minh Thu <vmt@openerp.com>2011-02-08 11:21:02 +0100
commit6226c1ed44249e0368261a952bee02b9939c0dc7 (patch)
tree48dff34337bc3bb6348e3d1f2a3f8e72b37fc2d1 /bin
parent45239ae4935050ae76b1ddfcbe3b5362e2cc04e4 (diff)
[IMP] added bin/openerp-server.py as a wrapper for backward compatibility.
bzr revid: vmt@openerp.com-20110208102102-92rfpx6c5midjg5c
Diffstat (limited to 'bin')
-rwxr-xr-xbin/openerp-server.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/openerp-server.py b/bin/openerp-server.py
new file mode 100755
index 00000000000..72aaa816cd0
--- /dev/null
+++ b/bin/openerp-server.py
@@ -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: