@@ -103,6 +103,9 @@ def _load_config() -> Config:
103103 source_paths = [Path (path ) for path in s ("source_paths" , [])]
104104 source_paths = source_paths or paths_to_mutate or [Path (path ) for path in _guess_source_paths ()]
105105
106+ # We resolve at startup, s.t. we are still in the current working directory (and no tests modified the directory)
107+ resolved_mutated_source_paths = [Path .cwd ().resolve (strict = True ) / "mutants" / p for p in source_paths ]
108+
106109 tests_dir = s ("tests_dir" , [])
107110 if tests_dir :
108111 warnings .warn (
@@ -135,6 +138,7 @@ def _load_config() -> Config:
135138 debug = s ("debug" , False ),
136139 mutate_only_covered_lines = s ("mutate_only_covered_lines" , False ),
137140 source_paths = source_paths ,
141+ resolved_mutated_source_paths = resolved_mutated_source_paths ,
138142 pytest_add_cli_args = s ("pytest_add_cli_args" , []),
139143 pytest_add_cli_args_test_selection = pytest_add_cli_args_test_selection ,
140144 timeout_multiplier = s ("timeout_multiplier" , 15.0 ),
@@ -164,6 +168,7 @@ class Config:
164168 max_stack_depth : int
165169 debug : bool
166170 source_paths : list [Path ]
171+ resolved_mutated_source_paths : list [Path ]
167172 pytest_add_cli_args : list [str ]
168173 pytest_add_cli_args_test_selection : list [str ]
169174 mutate_only_covered_lines : bool
0 commit comments