From e6c74caa092933c694e109de3810c64f27449d77 Mon Sep 17 00:00:00 2001 From: xor3 Date: Sun, 24 Nov 2013 22:54:47 +0800 Subject: [PATCH] Fix: keep `python-shell-interpreter-args' working. On windows, IPython only works with following configuration: (setq python-shell-interpreter "C:\\Python27\\python.exe" python-shell-interpreter-args "-i C:\\Python27\\Scripts\\ipython-script.py")) With out the `python-shell-interpreter-args', python-django-mode's shell does't have the promt "In [*]:" and its subprocess doesn't work right. So I keep the `python-shell-interpreter-args' here. --- python-django.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-django.el b/python-django.el index 41f1da8..82f1464 100644 --- a/python-django.el +++ b/python-django.el @@ -916,12 +916,15 @@ the `python-django-mgmt--available-commands' cache." (defun python-django-mgmt-make-comint (command process-name) "Run COMMAND with PROCESS-NAME in generic Comint buffer." (apply 'make-comint process-name - (executable-find python-shell-interpreter) nil + (format "%s %s" + (executable-find python-shell-interpreter) + python-shell-interpreter-args) + nil (split-string-and-unquote command))) (defun python-django-mgmt-make-comint-for-shell (command process-name) "Run COMMAND with PROCESS-NAME in generic Comint buffer." - (let ((python-shell-interpreter-args command)) + (let ((python-shell-interpreter-args (format "%s %s" python-shell-interpreter-args command))) (python-shell-make-comint (python-shell-parse-command) process-name))) (defun python-django-mgmt-make-comint-for-shell_plus (command process-name)