38 """Determine the root directory of the ESI runtime installation. Since we need
39 to support testing in a bunch of different configurations and environments,
40 just semi-brute-force the search."""
48 package_file = Path(esiaccel.__file__)
51 package_file.parent.parent,
52 package_file.parent.parent.parent,
53 package_file.resolve().parent,
54 package_file.resolve().parent.parent,
55 package_file.resolve().parent.parent.parent,
59 unique_candidates = []
60 for candidate
in candidates:
61 if candidate
not in seen:
62 unique_candidates.append(candidate)
69 for candidate
in unique_candidates:
73 for candidate
in unique_candidates:
77 raise FileNotFoundError(
"Could not determine ESI runtime root directory")