summaryrefslogtreecommitdiffstats
path: root/dsextras.py
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2003-04-29 23:37:30 +0000
committerJohan Dahlin <zilch@src.gnome.org>2003-04-29 23:37:30 +0000
commit607af7427414b2fb26e874a355e32b43d80d484a (patch)
tree7342cad8289ee0cb26ac3674b04629eab366ad08 /dsextras.py
parent4d73a4c9b201482593f0c94a3af5a7c4757730d5 (diff)
downloadpygobject-607af7427414b2fb26e874a355e32b43d80d484a.tar.gz
pygobject-607af7427414b2fb26e874a355e32b43d80d484a.tar.xz
pygobject-607af7427414b2fb26e874a355e32b43d80d484a.zip
Install dsextras.
2003-04-29 Johan Dahlin <jdahlin@async.com.br> * gtk/Makefile.am (pygtk_PYTHON): Install dsextras.
Diffstat (limited to 'dsextras.py')
-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)