Skip to content

Commit a4cfdda

Browse files
Check pylock.toml is_file instead of exists
Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent c236c89 commit a4cfdda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ def build_venv(self) -> None:
836836
)
837837
python = venv_path / "bin" / "python"
838838

839-
if (self.checkout / "Doc" / "pylock.toml").exists():
839+
if (self.checkout / "Doc" / "pylock.toml").is_file():
840840
requirements.remove("-rrequirements.txt")
841841
run(
842842
(python, "-m", "pip", "install", "-rpylock.toml"),

0 commit comments

Comments
 (0)