Comment 38 for bug 311981

Revision history for this message
Gerry Reno (greno-verizon) wrote :

Stephane,
  I have a fix for the wrong path in the startup files:

SERVER: setup.py
        # start_script = "#!/bin/sh\ncd %s\nexec %s ./openerp-server.py $@\n" % (opj(self.install_libbase, "openerp-server"), sys.executable)
        opj = os.path.join
        openerp_site_packages = opj('/usr', 'lib', 'python%s' % py_short_version, 'site-packages', 'openerp-server')
        start_script = "#!/bin/sh\ncd %s\nexec %s ./openerp-server.py $@\n" % (openerp_site_packages, sys.executable)

CLIENT: mydistutils.py
        # start_script = "#!/bin/sh\ncd %s\nexec %s ./openerp-client.py $@\n" % (opj(self.install_libbase, "openerp-client"), sys.executable)
        opj = os.path.join
        openerp_site_packages = opj('/usr', 'lib', 'python%s' % py_short_version, 'site-packages', 'openerp-client')
        start_script = "#!/bin/sh\ncd %s\nexec %s ./openerp-client.py $@\n" % (openerp_site_packages, sys.executable)

Please check code to see if this is good way to do this. It now puts the right path into the startup file.

Are you making any more progress on the other bugs?

Regards,
Gerry