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.
This commit is contained in:
parent
da55ee2af2
commit
431ea613b0
1 changed files with 2 additions and 2 deletions
|
@ -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")))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue