[FIX]: Translaiton: Fixed problem of other files included in export of translation of base module
bzr revid: mra@tinyerp.com-20091130111734-2hh985euf8n26omg
This commit is contained in:
parent
7f4afd020b
commit
9119fffc19
|
@ -628,7 +628,7 @@ def trans_generate(lang, modules, dbname=None):
|
||||||
for fname in fnmatch.filter(files, '*.py'):
|
for fname in fnmatch.filter(files, '*.py'):
|
||||||
fabsolutepath = join(root, fname)
|
fabsolutepath = join(root, fname)
|
||||||
frelativepath = fabsolutepath[len(path):]
|
frelativepath = fabsolutepath[len(path):]
|
||||||
module = get_module_from_path(frelativepath)
|
module = get_module_from_path(fabsolutepath)
|
||||||
is_mod_installed = module in installed_modules
|
is_mod_installed = module in installed_modules
|
||||||
if (('all' in modules) or (module in modules)) and is_mod_installed:
|
if (('all' in modules) or (module in modules)) and is_mod_installed:
|
||||||
code_string = tools.file_open(fabsolutepath, subdir='').read()
|
code_string = tools.file_open(fabsolutepath, subdir='').read()
|
||||||
|
|
Loading…
Reference in New Issue