From eaed70839675a276056c517a25ba9ebea7a94a26 Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Mon, 4 Apr 2022 14:57:06 +0100 Subject: [PATCH] Respect projectile-compilation-dir if it exists. This allows you to customise the start directory using .dir-locals and the projectile-project-compilation-dir variable. If that is not defined, it falls back to projectile-project-root. --- python-pytest.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-pytest.el b/python-pytest.el index 7c79ab0..39b536e 100644 --- a/python-pytest.el +++ b/python-pytest.el @@ -534,7 +534,7 @@ Example: ‘MyABCThingy.__repr__’ becomes ‘test_my_abc_thingy_repr’." (defun python-pytest--project-root () "Find the project root directory." (let ((projectile-require-project-root nil)) - (projectile-project-root))) + (projectile-compilation-dir))) (defun python-pytest--relative-file-name (file) "Make FILE relative to the project root."