]> git.eshelyaron.com Git - emacs.git/commitdiff
Mark python-shell-virtualenv-root as safe for directories
authorPhilip K <philip@warpmail.net>
Sat, 30 May 2020 19:47:51 +0000 (21:47 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 13 Jun 2020 07:40:13 +0000 (10:40 +0300)
* lisp/progmodes/python.el (python-shell-virtualenv-root):
Require a directory name.  (Bug#41619)

lisp/progmodes/python.el

index aec27a58dea50412a5e9c214116610e5d6eda5ce..0ce80db1993df1ca3317658b753c990d701a5023 100644 (file)
@@ -2092,7 +2092,8 @@ executed through tramp connections."
 This variable, when set to a string, makes the environment to be
 modified such that shells are started within the specified
 virtualenv."
-  :type '(choice (const nil) string)
+  :type '(choice (const nil) directory)
+  :safe #'file-directory-p
   :group 'python)
 
 (defcustom python-shell-setup-codes nil