[FIX] Don't archive the source file when src is False

bzr revid: stephane@tinyerp.com-20090122145853-0er3kat9kxxx8e80
This commit is contained in:
Stephane Wirtel 2009-01-22 15:58:53 +01:00
parent c677abdf3e
commit 9ef4ac36fe
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ def get_module_as_zip(modulename, b64enc=True, src=True):
base = os.path.basename(path)
for f in tools.osutil.listdir(path, True):
bf = os.path.basename(f)
if not RE_exclude.search(bf) and (src or bf == '__terp__.py' or not path.endswith('.py')):
if not RE_exclude.search(bf) and (src or bf == '__terp__.py' or not bf.endswith('.py')):
archive.write(os.path.join(path, f), os.path.join(base, f))
ap = get_module_path(str(modulename))