bzr revid: fp@tinyerp.com-20081209143426-8hp2khrcdevqcdqs
This commit is contained in:
Fabien Pinckaers 2008-12-09 15:34:26 +01:00
parent 887a992d58
commit 549458e053
1 changed files with 8 additions and 8 deletions

View File

@ -325,14 +325,14 @@ class module(osv.osv):
if not terp or not terp.get('installable', True):
continue
if not os.path.isfile( mod_path ):
import imp
path = imp.find_module(mod_name, [addons.ad, addons._ad])
imp.load_module(name, *path)
else:
import zipimport
zimp = zipimport.zipimporter(mod_path)
zimp.load_module(mod_name)
#if not os.path.isfile( mod_path ):
# import imp
# path = imp.find_module(mod_name, [addons.ad, addons._ad])
# imp.load_module(name, *path)
#else:
# import zipimport
# zimp = zipimport.zipimporter(mod_path)
# zimp.load_module(mod_name)
id = self.create(cr, uid, {
'name': mod_name,
'state': 'uninstalled',