From e3ca36569ae57534ab366d1f423588b69214d111 Mon Sep 17 00:00:00 2001 From: Cameron Hurst Date: Thu, 12 Dec 2019 15:12:09 -0500 Subject: [PATCH] fix: rename should be append to file not a folder --- poetry/installation/pip_installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poetry/installation/pip_installer.py b/poetry/installation/pip_installer.py index ddd9972cf8b..7b632dff528 100644 --- a/poetry/installation/pip_installer.py +++ b/poetry/installation/pip_installer.py @@ -220,7 +220,7 @@ def install_directory(self, package): args.append(req) try: - random_path = os.path.join(req, "pyproject.toml", str(uuid4())) + random_path = os.path.join(req, "pyproject.toml" + str(uuid4())) if pyproject.exists(): os.rename(os.path.join(req, "pyproject.toml"), random_path) return self.run(*args)