   ;; Set the default shell if not already set
   (when (null pyd-which-shell)
     (py-toggle-shells py-default-interpreter))
-  (let ((args py-which-args))
+  (let ((args pyd-which-args))
     (when (and argprompt
 	       (interactive-p)
 	       (fboundp 'split-string))

  "*List of string arguments to be used when starting a Python shell."
  :type '(repeat string)
  :group 'python)

(defcustom py-jpython-command-args '("-i")
  "*List of string arguments to be used when starting a JPython shell."

  :type 'string
  :group 'python)

(defcustom pyd-python-command "ppython"
  "*Shell command used to start Python interpreter."
  :type 'string
  :group 'python)
