fix opening "/" bug

This commit is contained in:
Tim Miller 2013-01-29 11:04:12 -08:00
parent fc994db36a
commit b6a9e31650
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ def install_cornfig(config_path, template_root, output_path='/'):
config = read_config(config_path)
tree = build_tree( template_paths(template_root), config )
for path, contents in tree.items():
write_file( os.path.join(output_path, path), contents)
write_file( os.path.join(output_path, strip_prefix('/', path)), contents)
def write_file(path, contents):
d = os.path.dirname(path)