summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dsextras.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dsextras.py b/dsextras.py
index a4462a4..22faa68 100644
--- a/dsextras.py
+++ b/dsextras.py
@@ -110,7 +110,7 @@ class InstallLib(install_lib):
def add_template_option(self, name, value):
self.template_options['@%s@' % name] = value
-
+
def install_template(self, filename, install_dir):
"""Install template filename into target directory install_dir."""
output_file = os.path.split(filename)[-1][:-3]
@@ -118,7 +118,7 @@ class InstallLib(install_lib):
template = open(filename).read()
for key, value in self.template_options.items():
template = template.replace(key, value)
-
+
output = os.path.join(install_dir, output_file)
self.mkpath(install_dir)
open(output, 'w').write(template)