symforce.path_util module

exception MissingManifestException[source]

Bases: RuntimeError

symforce_dir()[source]
Return type:

Path

symenginepy_install_dir()[source]
Return type:

Path

cc_sym_install_dir()[source]
Return type:

Path

binary_output_dir()[source]
Return type:

Path

symforce_root()[source]

The root directory of the symforce project

Return type:

Path

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:

  1. 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.

  2. 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.

Parameters:

test_file_path (str | None) –

Return type:

Path