From 431ea613b06f058f9b4ccb074d0c9f58cdc8340e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 26 Sep 2018 20:38:02 -0400 Subject: [PATCH] lang/python: set PIPENV_MAX_DEPTH in eval handler Instead of changing the cwd, which chould have other reprecussions for the code about to be executed. --- modules/lang/python/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index 35303dce6..5ee85feef 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -135,8 +135,8 @@ '((:command . "python") (:exec (lambda () (if-let* ((bin (executable-find "pipenv")) - (dir (pipenv-project-p))) - (format "cd %S && %s run %%c %%o %%s %%a" dir bin) + (_ (pipenv-project-p))) + (format "PIPENV_MAX_DEPTH=9999 %s run %%c %%o %%s %%a" bin) "%c %o %s %a"))) (:description . "Run Python script")))