(args)
| 190 | |
| 191 | |
| 192 | def resolve_hermes_profile(args): |
| 193 | profile = args.profile or DEFAULT_PROFILE |
| 194 | if args.hermes_home is not None: |
| 195 | return HermesProfileSelection(profile=profile, profile_dir=args.hermes_home) |
| 196 | if args.profile: |
| 197 | home = Path.home() |
| 198 | return HermesProfileSelection( |
| 199 | profile=profile, |
| 200 | profile_dir=home / ".hermes/profiles" / profile, |
| 201 | install_home=home, |
| 202 | ) |
| 203 | |
| 204 | temp_home = tempfile.TemporaryDirectory(prefix="tracedecay-eval-hermes-") |
| 205 | home = Path(temp_home.name) |
| 206 | return HermesProfileSelection( |
| 207 | profile=profile, |
| 208 | profile_dir=home / ".hermes/profiles" / profile, |
| 209 | install_home=home, |
| 210 | _temp_dir=temp_home, |
| 211 | ) |
| 212 | |
| 213 | |
| 214 | def resolve_tracedecay_bin(explicit): |
no test coverage detected