def get_pack_resource_file_abs_path(pack_ref, resource_type, file_path):
 path_components = []
 if (resource_type == 'action'):
  path_components.append('actions/')
 elif (resource_type == 'sensor'):
  path_components.append('sensors/')
 elif (resource_type == 'rule'):
  path_components.append('rules/')
 else:
  raise ValueError(('Invalid resource type: %s' % resource_type))
 path_components.append(file_path)
 file_path = os.path.join(*path_components)
 result = get_pack_file_abs_path(pack_ref=pack_ref, file_path=file_path)
 return result

def get_pack_resource_file_abs_path ( pack_ref , resource_type , file_path ) : path_components = [ ] if ( resource_type == 'action' ) : path_components . append ( 'actions/' ) elif ( resource_type == 'sensor' ) : path_components . append ( 'sensors/' ) elif ( resource_type == 'rule' ) : path_components . append ( 'rules/' ) else : raise ValueError ( ( 'Invalid resource type: %s' % resource_type ) ) path_components . append ( file_path ) file_path = os . path . join ( * path_components ) result = get_pack_file_abs_path ( pack_ref = pack_ref , file_path = file_path ) return result
retrieve full absolute path to the pack resource file .