Skip to content

Commit

Permalink
Change default --app-dir from from "." (dot) to "" (empty string). (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mila committed Jan 6, 2023
1 parent eec7d22 commit 4831d79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Options:
--version Display the uvicorn version and exit.
--app-dir TEXT Look for APP in the specified directory, by
adding this to the PYTHONPATH. Defaults to
the current working directory. [default: .]
the current working directory.
--h11-max-incomplete-event-size INTEGER
For h11, the maximum number of bytes to
buffer of an incomplete event.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Options:
--version Display the uvicorn version and exit.
--app-dir TEXT Look for APP in the specified directory, by
adding this to the PYTHONPATH. Defaults to
the current working directory. [default: .]
the current working directory.
--h11-max-incomplete-event-size INTEGER
For h11, the maximum number of bytes to
buffer of an incomplete event.
Expand Down
2 changes: 1 addition & 1 deletion uvicorn/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def print_version(ctx: click.Context, param: click.Parameter, value: bool) -> No
)
@click.option(
"--app-dir",
default=".",
default="",
show_default=True,
help="Look for APP in the specified directory, by adding this to the PYTHONPATH."
" Defaults to the current working directory.",
Expand Down

0 comments on commit 4831d79

Please sign in to comment.