Fixing relative path of embed_files.

This commit is contained in:
Ben Vanik 2012-12-25 02:17:37 -08:00
parent 59b07c0262
commit 82739f0b06
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ class _EmbedFilesRuleTask(Task):
wrapped_str = self.wrapper.replace('%output%', replaced_str)
rel_path = os.path.relpath(src_path, self.rule_path)
rel_path = os.path.relpath(src_path, os.path.dirname(self.rule_path))
rel_path = anvil.util.strip_build_paths(rel_path)
rel_path = os.path.normpath(rel_path)
wrapped_str = wrapped_str.replace('%path%', rel_path)