[FIX] Better translation exportation.

lp bug: https://launchpad.net/bugs/425131 fixed

bzr revid: jvo@tinyerp.com-20090911143345-tg9ypdltlqcguo9g
This commit is contained in:
Christophe Chauvet(Syleam) 2009-09-11 20:03:45 +05:30 committed by Jay (Open ERP)
parent d4e9825ce6
commit 5b936460bd
1 changed files with 5 additions and 3 deletions

View File

@ -551,10 +551,12 @@ def trans_generate(lang, modules, dbname=None):
installed_modids = modobj.search(cr, uid, [('state', '=', 'installed')])
installed_modules = map(lambda m: m['name'], modobj.read(cr, uid, installed_modids, ['name']))
if tools.config['root_path'] in tools.config['addons_path'] :
path_list = [tools.config['root_path']]
root_path = os.path.join(tools.config['root_path'], 'addons')
if root_path in tools.config['addons_path'] :
path_list = [root_path]
else :
path_list = [tools.config['root_path'],tools.config['addons_path']]
path_list = [root_path,tools.config['addons_path']]
for path in path_list:
for root, dirs, files in tools.osutil.walksymlinks(path):