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

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

        def get_rcfile(cfg, key):
    rcfile = cfg.get('rcfiles', key)
    if rcfile and rcfile[-1] != '/':
        return os.path.abspath(rcfile)
    if rcfile and rcfile[-1] == '/':
        return os.path.join(os.path.abspath(rcfile), '.%s' % key)
    return os.path.join(cfg.get('dirs', 'target'), '.%s' % key)
        


src/a/r/archie-0.0.3/archie/handlers/install.py   archie(Download)
def create_symlink(cfg, pkg, rcfiles):
    linkfile = []
    for rc in rcfiles:
        ourfile = os.path.abspath(os.path.join(pkg, rc))
        orifile = helpers.get_rcfile(cfg, rc)

src/a/r/archie-0.0.3/archie/handlers/restore.py   archie(Download)
    for rc in rcfiles:
        backup = helpers.get_backupfile(cfg, rc)
        rcfile = helpers.get_rcfile(cfg, rc)
        if os.path.lexists(backup) and tarfile.is_tarfile(backup):
            files.append((backup, rcfile))