Skip to content

Commit

Permalink
put the whole working dir logic into a dedicate
Browse files Browse the repository at this point in the history
  • Loading branch information
Fan-Feng committed May 15, 2024
1 parent 7cd8981 commit e8b44fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions constrain/api/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,12 @@ def change_work_dir(self) -> None:
os.chdir(self.workflow_dict["working_dir"])
logging.info("Change current working path to the specified path.")
else:
Path(self.workflow_dict["working_dir"]).mkdir(parents=True, exist_ok=True)
logging.info("working directory specified does not exist and create a new director.")
Path(self.workflow_dict["working_dir"]).mkdir(
parents=True, exist_ok=True
)
logging.info(
"working directory specified does not exist and create a new director."
)

def validate(self, verbose: bool = False) -> bool:
"""function to be implemented to check for high level validity of the workflow definition"""
Expand Down

0 comments on commit e8b44fb

Please sign in to comment.