def mkdir_p(path):
    """
    Borrowed from: http://stackoverflow.com/a/600612/386925
    """
    try:
        os.makedirs(path)
    except __HOLE__ as exc:  # Python >2.5
        if exc.errno != errno.EEXIST or not os.path.isdir(path):
            raise
dataset/ETHPy150Open winhamwr/neckbeard/neckbeard/configuration.py/mkdir_p