symforce.path_util module¶
- exception MissingManifestException[source]¶
Bases:
RuntimeError
- symforce_data_root(test_file_path)[source]¶
The root directory of the symforce project, for use accessing data that might need to be updated (such as generated files). Most of the time this is the same as
symforce_root()
, except for two cases:When running tests on wheels, this is the root of the copy of SymForce containing the test, not the installed copy. The generated files we’re checking aren’t in the wheel, they’re in the source tree.
When the
--update
flag is passed to a test, this is guaranteed to point to the resolved version, i.e. the actual symforce location on disk regardless of whether this path is a symlink.