Skip to content

Commit 08df213

Browse files
authored
Respect projectile-compilation-dir if it exists (#59)
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.
1 parent ea53891 commit 08df213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-pytest.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ Example: ‘MyABCThingy.__repr__’ becomes ‘test_my_abc_thingy_repr’."
534534
(defun python-pytest--project-root ()
535535
"Find the project root directory."
536536
(let ((projectile-require-project-root nil))
537-
(projectile-project-root)))
537+
(projectile-compilation-dir)))
538538

539539
(defun python-pytest--relative-file-name (file)
540540
"Make FILE relative to the project root."

0 commit comments

Comments
 (0)