Skip to content

Commit

Permalink
allow disabling copy tool
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Feb 10, 2025
1 parent 935dfeb commit 9bc2f8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/sed/core/config_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class CopyToolModel(BaseModel):

source: DirectoryPath
dest: DirectoryPath
use: Optional[bool] = None
safety_margin: Optional[float] = None
gid: Optional[int] = None
scheduler: Optional[str] = None
Expand Down
4 changes: 3 additions & 1 deletion src/sed/core/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ def __init__(
verbose=self._verbose,
)

self.use_copy_tool = "copy_tool" in self._config["core"]
self.use_copy_tool = "copy_tool" in self._config["core"] and self._config["core"][
"copy_tool"
].pop("use", True)
if self.use_copy_tool:
try:
self.ct = CopyTool(
Expand Down

0 comments on commit 9bc2f8b

Please sign in to comment.