-#!/usr/bin/python
# WSGI Handler sample configuration file.
#
# Change the appropriate settings below, in order to provide the parameters
#
# For gunicorn additional globals need to be defined in the Gunicorn section.
# Then the following command should run:
-# $ gunicorn openerp:application -c openerp-wsgi.py
+# $ gunicorn openerp:service.wsgi_server.application -c openerp-wsgi.py
import openerp
#----------------------------------------------------------
application = openerp.service.wsgi_server.application
+openerp.service.server.load_server_wide_modules()
+
#----------------------------------------------------------
# Gunicorn
#----------------------------------------------------------