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 ensure_dir_exists(path):
    try:
        os.makedirs(path)
    except OSError as exc:
        if exc.errno == errno.EEXIST and os.path.isdir(path):
            pass
        else: raise
        


src/a/r/archie-0.0.3/archie/handlers/install.py   archie(Download)
                    shutil.rmtree(orifile)
        else:
            helpers.ensure_dir_exists(os.path.dirname(orifile))
        os.symlink(ourfile, orifile)
        linkfile.append((orifile, ourfile))
def Install(cfg):
    pkg = cfg.get('args', 'PACKAGE')
    rcfiles = cfg.options('rcfiles')
    helpers.ensure_dir_exists(cfg.get('dirs', 'target'))
    backup.Backup(cfg, rcfiles)