← Back to team overview

openerp-community team mailing list archive

Re: from addons import x and addons_path list

 

Hi,
You have to reference it in your module's __openerp__.py, in the
"depends" section.
I think you should not import it, rather call the pooler's get() method.
Lionel Sausin

Le 17/10/2011 13:43, Viktor Nagy a écrit :
> hi,
>
> in my server config file I've specified the addons_path as a list
>
> addons_path =
> /home/akasha/versioning/bzr/openerp-6/addons/core,/home/akasha/versioning/bzr/openerp-6/addons/installed
>
> now I'm trying to install a module that would like to import
> base_calendar, and the module install fails with ImportError of base
> calendar
>
> File
> "/home/akasha/versioning/bzr/openerp-6/addons/installed/base_report_to_printer/printing.py",
> line 43, in <module>
>     from addons.base_calendar import base_calendar
> ImportError: No module named base_calendar
>
> Could someone tell me how to properly import modules with a list
> addons_path setting?
>
> thx
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openerp-community
> Post to     : openerp-community@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openerp-community
> More help   : https://help.launchpad.net/ListHelp


Follow ups

References