26 """Determine the root directory of the ESI runtime installation. Since we need
27 to support testing in a bunch of different configurations and environments,
28 just semi-brute-force the search."""
34 package_file = Path(esiaccel.__file__)
36 package_file.parent.parent,
37 package_file.parent.parent.parent,
38 package_file.resolve().parent.parent,
39 package_file.resolve().parent.parent.parent,
43 for candidate
in candidates:
50 raise FileNotFoundError(
"Could not determine ESI runtime root directory")