X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/3759b856af3434e96ff48ac635928079a4a48ae7..f2a3fee15c3bc0f4068b2b2fb64f255b417cb4ef:/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]