We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aa18b1 commit 69a5b7bCopy full SHA for 69a5b7b
mutmut/__main__.py
@@ -176,8 +176,12 @@ class BadTestExecutionCommandsException(Exception):
176
177
def copy_src_dir():
178
for path in mutmut.config.paths_to_mutate:
179
- output_path = Path('mutants') / path
180
- shutil.copytree(path, output_path, dirs_exist_ok=True)
+ output_path: Path = Path('mutants') / path
+ if isdir(path):
181
+ shutil.copytree(path, output_path, dirs_exist_ok=True)
182
+ else:
183
+ output_path.parent.mkdir(exist_ok=True, parents=True)
184
+ shutil.copyfile(path, output_path)
185
186
def create_mutants(max_children: int):
187
with Pool(processes=max_children) as p:
0 commit comments