Logo Search packages:      
Sourcecode: python-gtkglext1 version File versions  Download package

def setup::PyGtkGLExtInstallLib::install_template_as (   self,
  filename,
  install_dir,
  install_filename 
)
Install template filename into target directory install_dir.

Definition at line 75 of file setup.py.

                                                                          :
        """Install template filename into target directory install_dir."""
        
        template = open(filename).read()
        for key, value in self.template_options.items():
            template = template.replace(key, value)
        
        output = os.path.join(install_dir, install_filename)
        self.mkpath(install_dir)
        open(output, 'w').write(template)
        self.local_inputs.append(filename)
        self.local_outputs.append(output)
        return output


Generated by  Doxygen 1.6.0   Back to index