(dirpath)
Python2 support for os.makedirs(.., exist_ok=True)
Python2 support for os.makedirs(.., exist_ok=True)
Python2 support for os . makedirs ( .. exist_ok = True )
def makedir_exist_ok(dirpath):
    """
    Python2 support for os.makedirs(.., exist_ok=True)
    """
    try:
        os.makedirs(dirpath)
    except OSError as e:
        if e.errno == errno.EEXIST:
            pass
        else:
            raise
def makedir_exist_ok ( dirpath ) : try : os . makedirs ( dirpath ) except OSError as e : if e . errno == errno . EEXIST : pass else : raise