Browse Source

Ensured that the parent directory is created before binary files are coped over

main
Lakshmi Vyasarajan 14 years ago
parent
commit
49332e6b18
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      hyde/generator.py

+ 1
- 0
hyde/generator.py View File

@@ -225,5 +225,6 @@ class Generator(object):
self.events.begin_binary_resource(resource) self.events.begin_binary_resource(resource)
target = File(self.site.config.deploy_root_path.child( target = File(self.site.config.deploy_root_path.child(
resource.relative_deploy_path)) resource.relative_deploy_path))
target.parent.make()
resource.source_file.copy_to(target) resource.source_file.copy_to(target)
self.events.binary_resource_complete(resource) self.events.binary_resource_complete(resource)

Loading…
Cancel
Save