Skip to content

Commit

Permalink
exist_ok=True for nonstandard config
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma authored Jan 8, 2024
1 parent d29ef54 commit dde8bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snk/nest.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def copy_nonstandard_config(self, pipeline_dir: Path, config_path: Path):
>>> nest.copy_nonstandard_config(Path('/path/to/pipeline'), Path('/path/to/config.yaml'))
"""
config_dir = pipeline_dir / "config"
config_dir.mkdir()
config_dir.mkdir(exist_ok=True)
shutil.copyfile(pipeline_dir / config_path, config_dir / "config.yaml")

def get_paths_to_delete(self, pipeline_name: str) -> List[Path]:
Expand Down

0 comments on commit dde8bd3

Please sign in to comment.