MCPcopy
hub / github.com/mherrmann/fbs / get_resource

Method get_resource

fbs_runtime/application_context/__init__.py:66–73  ·  view source on GitHub ↗

Return the absolute path to the data file with the given name or (relative) path. When running from source, searches src/main/resources. Otherwise, searches your app's installation directory. If no file with the given name or path exists, a FileNotFoundError is raise

(self, *rel_path)

Source from the content-addressed store, hash-verified

64 return _frozen.load_build_settings()
65 return _source.load_build_settings(self._project_dir)
66 def get_resource(self, *rel_path):
67 """
68 Return the absolute path to the data file with the given name or
69 (relative) path. When running from source, searches src/main/resources.
70 Otherwise, searches your app's installation directory. If no file with
71 the given name or path exists, a FileNotFoundError is raised.
72 """
73 return self._resource_locator.locate(*rel_path)
74 @cached_property
75 def exception_handlers(self):
76 """

Callers 1

app_iconMethod · 0.95

Calls 1

locateMethod · 0.80

Tested by

no test coverage detected