[FIX] Don't archive the source file when src is False
bzr revid: stephane@tinyerp.com-20090122145853-0er3kat9kxxx8e80
This commit is contained in:
parent
c677abdf3e
commit
9ef4ac36fe
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue