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:
Henrik Lissner 2018-09-26 20:38:02 -04:00
parent da55ee2af2
commit 431ea613b0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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")))