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 get_backupfile(cfg, key):
    fname = os.path.basename(get_rcfile(cfg, key))
    backupfile = os.path.join(cfg.get('dirs', 'backup-dir'), \
        '%s-%s.tgz' % (cfg.args['PACKAGE'].replace('/', '_'), fname))
    return backupfile
        


src/a/r/archie-0.0.3/archie/handlers/restore.py   archie(Download)
def find_backup(cfg):
    files = []
    rcfiles = cfg.options('rcfiles')
    for rc in rcfiles:
        backup = helpers.get_backupfile(cfg, rc)