human_body_prior/tools/omni_tools.py
def makepath(desired_path, isfile = False):
    '''
    if the path does not exist make it
    :param desired_path: can be path to a file or a folder name
    :return:
    '''
    import os
    if isfile:
        if not os.path.exists(os.path.dirname(desired_path)):os.makedirs(os.path.dirname(desired_path))
    else:
        if not os.path.exists(desired_path): os.makedirs(desired_path)
    return desired_path

    if the path does not exist make it
    :param desired_path: can be path to a file or a folder name
    :return:
    
if the path does not exist make it
if the path does not exist make it
def makepath(desired_path, isfile = False):
    import os
    if isfile:
        if not os.path.exists(os.path.dirname(desired_path)):os.makedirs(os.path.dirname(desired_path))
    else:
        if not os.path.exists(desired_path): os.makedirs(desired_path)
    return desired_path
def makepath ( desired_path , isfile = False ) : import os if isfile : if not os . path . exists ( os . path . dirname ( desired_path ) ) : os . makedirs ( os . path . dirname ( desired_path ) ) else : if not os . path . exists ( desired_path ) : os . makedirs ( desired_path ) return desired_path
if the path does not exist make it
if the path does not exist make it
'''
    if the path does not exist make it
    :param desired_path: can be path to a file or a folder name
    :return:
    '''
None
desired_path
can be path to a file or a folder name
can be path to a file or a folder name
isfile