def get_image_path(name, default='not_found.png'):
 for img_path in IMG_PATH:
  full_path = osp.join(img_path, name)
  if osp.isfile(full_path):
   return osp.abspath(full_path)
 if (default is not None):
  return osp.abspath(osp.join(img_path, default))

def get_image_path ( name , default = 'not_found.png' ) : for img_path in IMG_PATH : full_path = osp . join ( img_path , name ) if osp . isfile ( full_path ) : return osp . abspath ( full_path ) if ( default is not None ) : return osp . abspath ( osp . join ( img_path , default ) )
return image absolute path .