def get_lab_profile_resource(): """Returns named temporary file object of built-in Lab profile. :return: path to built-in Lab profile """ import lab_profile_rc return lab_profile_rc.get_resource(True)
def cms_create_lab_profile(): """ Artificial functionality. The function emulates built-in Lab profile reading profile resource attached to the package. Returns a handle to lcms built-in Lab profile wrapped as a Python object. The handle doesn't require to be closed after usage because on object delete operation Python calls native cms_close_profile() function automatically """ import lab_profile_rc profile = lab_profile_rc.get_resource(True) return cms_open_profile_from_file(profile.name)
def get_lab_profile_resource(): """ Returns named temporary file object of built-in Lab profile. """ import lab_profile_rc return lab_profile_rc.get_resource(True)