(my_path)
Generate directory if not exists
Generate directory if not exists
Generate directory if not exists
def ensure_dir(my_path):
    """ Generate directory if not exists
    """
    if not os.path.exists(my_path):
        os.makedirs(my_path)
def ensure_dir ( my_path ) : if not os . path . exists ( my_path ) : os . makedirs ( my_path )