-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of Directory Selection for Server Startup [Santana's PR] #1788
Conversation
@@ -56,6 +56,12 @@ def viz(ctx): | |||
default=DEFAULT_HOST, | |||
help="Host that viz will listen to. Defaults to localhost.", | |||
) | |||
@click.option( | |||
"--project_path", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for consistency the option can be renamed to - --project-path
@@ -137,9 +137,14 @@ def run_server( | |||
parser.add_argument( | |||
"--port", help="The port of the development server", default=DEV_PORT | |||
) | |||
parser.add_argument("--project_path", help="Path to a Kedro project") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be renamed to --project-path
for consistency
@@ -158,7 +166,7 @@ def run( | |||
"extra_params": params, | |||
} | |||
if autoreload: | |||
project_path = Path.cwd() | |||
project_path = Path(project_path) if project_path else Path.cwd() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run_server also does Path(project_path) if project_path else Path.cwd()
on line 109 server.py
, so we can just pass project_path and this is not needed
Closing this one as I was able to create a PR based off contributor PR. |
Description
This is based on Santana's work #1741. I was not able to work off that ticket since it was forked, so created a new PR.
Development notes
QA notes
Checklist
RELEASE.md
file