X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/3759b856af3434e96ff48ac635928079a4a48ae7..14072be245b909d2340e13c571e76bf36080cc5a:/src/black/files.py?ds=sidebyside 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]