[fix] don't chdir when there is no need to
bzr revid: xmo@tinyerp.com-20091212161314-ugcveociv6v85u8z
This commit is contained in:
parent
5221a2514e
commit
a3c3b16974
6
setup.py
6
setup.py
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue