> I think
> try:
>   from openerp.addons import $module_name
> except:
> ...
> 
> is a cleaner (and more pythonic) approach to detect the availability of a
> module

A module could be importable from python (as soon as it lives in the addons 
path), but not actually installed on the current database.

-- 
https://code.launchpad.net/~therp-nl/banking-addons/ba70-fix_payment_detection/+merge/162358
Your team Banking Addons Team is subscribed to branch 
lp:banking-addons/banking-addons-70.

-- 
Mailing list: https://launchpad.net/~banking-addons-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~banking-addons-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to