remove unnecessary os.path.join() calls

ofilenames and srcs are already absolute paths.
This commit is contained in:
Nicolas Schneider 2016-03-15 23:37:50 +01:00
parent e067c4a79d
commit 3871f22cc3
1 changed files with 2 additions and 4 deletions

View File

@ -306,10 +306,8 @@ class Vs2010Backend(backends.Backend):
(srcs, ofilenames, cmd) = self.eval_custom_target_command(target, True)
cmd_templ = '''"%s" '''*len(cmd)
ET.SubElement(customstep, 'Command').text = cmd_templ % tuple(cmd)
ET.SubElement(customstep, 'Outputs').text = ';'.join([os.path.join(self.environment.get_build_dir(), i)\
for i in ofilenames])
ET.SubElement(customstep, 'Inputs').text = ';'.join([os.path.join(self.environment.get_build_dir(), i) \
for i in srcs])
ET.SubElement(customstep, 'Outputs').text = ';'.join(ofilenames)
ET.SubElement(customstep, 'Inputs').text = ';'.join(srcs)
ET.SubElement(root, 'Import', Project='$(VCTargetsPath)\Microsoft.Cpp.targets')
tree = ET.ElementTree(root)
tree.write(ofname, encoding='utf-8', xml_declaration=True)