Skip to content

Commit

Permalink
Modifying arguments help
Browse files Browse the repository at this point in the history
Signed-off-by: Parth Mandaliya <parth.mandaliya.007@gmail.com>
Signed-off-by: Parth Mandaliya <parthx.mandaliya@intel.com>
  • Loading branch information
ParthMandaliya authored and ParthM-GitHub committed Sep 28, 2023
1 parent 2c7720c commit 1f3750a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openfl/experimental/workspace_creator/creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ def main(script_path: Path, workspace_output_dir: Path, template_workspace_dir:
from argparse import ArgumentParser

parser = ArgumentParser()
parser.add_argument("-l", required=True, type=str, help="Absolute path to jupyter notebook"
parser.add_argument("-l", required=True, type=str, help="Absolute path of jupyter notebook"
+ " script")
parser.add_argument("-o", required=True, type=str, help="Output directory for generated"
+ " workspace")
parser.add_argument("-t", required=True, type=str, help="Absolute path to template workspace")
parser.add_argument("-t", required=True, type=str, help="Absolute path of template workspace")

parsed_args = parser.parse_args()

Expand All @@ -130,7 +130,7 @@ def main(script_path: Path, workspace_output_dir: Path, template_workspace_dir:
template_workspace_directory = Path(parsed_args.t).resolve()

if not notebook_path.exists() and not notebook_path.is_file():
raise FileNotFoundError(f"Python script not found {str(notebook_path)}")
raise FileNotFoundError(f"Jupyter notebook not found: {str(notebook_path)}")

workspace_output_directory.mkdir(parents=True, exist_ok=True)

Expand Down

0 comments on commit 1f3750a

Please sign in to comment.