X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/3759b856af3434e96ff48ac635928079a4a48ae7..62402a32618bc62ae90cfcdc3d47c7ad20e60e10:/src/black/files.py diff --git a/src/black/files.py b/src/black/files.py index de51615..b9cefd3 100644 --- a/src/black/files.py +++ b/src/black/files.py @@ -38,7 +38,7 @@ def find_project_root(srcs: Sequence[str]) -> Path: project root, the root of the file system is returned. """ if not srcs: - return Path("/").resolve() + srcs = [str(Path.cwd().resolve())] path_srcs = [Path(Path.cwd(), src).resolve() for src in srcs]