def mkdir_p(dir_path):
    try:
        os.makedirs(dir_path)
    except __HOLE__ as exc:  # Python >2.5
        if exc.errno == errno.EEXIST and os.path.isdir(dir_path):
            pass
        else:
            raise
dataset/ETHPy150Open ensime/ensime-sublime/ensime.py/mkdir_p