

def CopyFiles(self):
    'This sets up the template directory.'
    dpkg_dir = config_lib.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/grr-client.service'), outdir)

dataset/ETHPy150Open google/grr/grr/lib/builders/linux.py LinuxClientBuilder.CopyFiles/original