2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

Replace backslashes in resx.py - Issue 1666

This commit is contained in:
Thomas Nagy 2015-12-17 23:53:41 +01:00
parent d368dee436
commit bdca245588

View File

@ -19,7 +19,7 @@ def resx_file(self, node):
# Given assembly 'Foo' and file 'Sub/Dir/File.resx', create 'Foo.Sub.Dir.File.resources'
assembly = os.path.splitext(self.gen)[0]
res = os.path.splitext(node.path_from(self.path))[0].replace('/', '.')
res = os.path.splitext(node.path_from(self.path))[0].replace('/', '.').replace('\\', '.')
out = self.path.find_or_declare(assembly + '.' + res + '.resources')
tsk = self.create_task('resgen', node, out)