[fix] don't chdir when there is no need to

bzr revid: xmo@tinyerp.com-20091212161314-ugcveociv6v85u8z
This commit is contained in:
Xavier Morel 2009-12-12 17:13:14 +01:00
parent 5221a2514e
commit a3c3b16974
1 changed files with 2 additions and 4 deletions

View File

@ -107,10 +107,8 @@ def data_files():
'''Build list of data files to be installed'''
files = []
if os.name == 'nt':
os.chdir('bin')
for (dp,dn,names) in os.walk('addons'):
files.append((dp, map(lambda x: join('bin', dp, x), names)))
os.chdir('..')
for (dp,dn,names) in os.walk(join('bin','addons')):
files.append((dp, map(lambda x: join(dp, x), names)))
for (dp,dn,names) in os.walk('doc'):
files.append((dp, map(lambda x: join(dp, x), names)))
files.append(('.', [join('bin', 'import_xml.rng'),