Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3520 Lượt xem

Hi boys, I have installed original UBUNTU distro on virtual server. So, where I can find openerp files and addons directory?

I have one files on : 1) /var/lib/~python-support/python2.7/openerp but this is only simlinks ??

Another files are : 2) /usr/share/pyshared/openerp

but when I uploaded module to 2) - openerp dont´t found it... When I uploaded to 1) - it´s OK... But why I have this files 2x?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Number one, is the normal place for python 2.7 on ubunto. var/lib/python-support/python2.7 So that's oke, but you normally don't have any openerp directory below.

If you install openerp normally it asked for a location like:

/opt/openerp/ <----- is this available on your system. The add-ons are normally under /opt/openerp/server-version/add-ons.

In that way, if you will update your python version openerp will normally be able to work with a new version.

Number two is something that's been installed for shared libraries between python.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

If you've installed from .deb version.

Write on your console:

 sudo nano /etc/openerp/openerp-server.conf

And you'll find there the addons path, also you can add more addons paths separated by ","

Usually modules are here: /usr/lib/pymodules/python2.7/openerp/addons

Ảnh đại diện
Huỷ bỏ