Skip to content

fabric.contrib.files.upload_template should respect lcd() and template_dir #328

Closed
@bitprophet

Description

@bitprophet

Description

upload_template respects template_dir only if jinja2 is used, otherwise it simply tries to open file in current dir:

with open(filename) as inputfile:
text = inputfile.read()
if context:
text = text % context


Originally submitted by Dmitry Guyvoronsky (dreamiurg) on 2011-03-26 at 06:44pm EDT

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions