Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def Backup(cfg, rcfiles):
    backupfiles = []
    backupdir = cfg.get('dirs', 'backup-dir')
    for rc in rcfiles:
        orifile = helpers.get_rcfile(cfg, rc)
        if os.path.lexists(orifile) and not os.path.islink(orifile):
            fname = os.path.basename(orifile)
            archivename = helpers.get_backupfile(cfg, rc)
            backupfiles.append(gzip_then_store(orifile, archivename))
    return backupfiles

src/a/r/archie-0.0.3/archie/handlers/install.py   archie(Download)
def Install(cfg):
    pkg = cfg.get('args', 'PACKAGE')
    rcfiles = cfg.options('rcfiles')
    helpers.ensure_dir_exists(cfg.get('dirs', 'target'))
    backup.Backup(cfg, rcfiles)