'This sets up the template directory.'

def CopyFiles(self):

    shutil.copy(config_lib.Resource().Filter('install_data/debian/dpkg_client/nanny.sh.in'), self.output_dir)
    dpkg_dir = config.CONFIG.Get('PyInstaller.dpkg_root', context=self.context)
    shutil.copytree(config_lib.Resource().Filter('install_data/debian/dpkg_client/debian'), os.path.join(dpkg_dir, 'debian/debian.in'))
    outdir = os.path.join(dpkg_dir, 'debian/upstart.in')
    utils.EnsureDirExists(outdir)
    shutil.copy(config_lib.Resource().Filter('install_data/debian/dpkg_client/upstart/grr-client.conf'), outdir)
    outdir = os.path.join(dpkg_dir, 'debian/initd.in')
    utils.EnsureDirExists(outdir)
    shutil.copy(config_lib.Resource().Filter('install_data/debian/dpkg_client/initd/grr-client'), outdir)
    outdir = os.path.join(dpkg_dir, 'debian/systemd.in')
    utils.EnsureDirExists(outdir)
    shutil.copy(config_lib.Resource().Filter('install_data/systemd/client/grr-client.service'), outdir)
