mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -135,8 +135,8 @@
|
|||||||
'((:command . "python")
|
'((:command . "python")
|
||||||
(:exec (lambda ()
|
(:exec (lambda ()
|
||||||
(if-let* ((bin (executable-find "pipenv"))
|
(if-let* ((bin (executable-find "pipenv"))
|
||||||
(dir (pipenv-project-p)))
|
(_ (pipenv-project-p)))
|
||||||
(format "cd %S && %s run %%c %%o %%s %%a" dir bin)
|
(format "PIPENV_MAX_DEPTH=9999 %s run %%c %%o %%s %%a" bin)
|
||||||
"%c %o %s %a")))
|
"%c %o %s %a")))
|
||||||
(:description . "Run Python script")))
|
(:description . "Run Python script")))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user