;; virtualenvs and other special environment modifications thanks to
;; `python-shell-process-environment' and `python-shell-exec-path'.
;; These two variables allows you to modify execution paths and
-;; enviroment variables to make easy for you to setup virtualenv rules
+;; environment variables to make easy for you to setup virtualenv rules
;; or behavior modifications when running shells. Here is an example
;; of how to make shell processes to be run using the /path/to/env/
;; virtualenv:
:safe 'integerp)
(defcustom python-shell-process-environment nil
- "List of enviroment variables for Python shell.
-This variable follows the same rules as `process-enviroment'
+ "List of environment variables for Python shell.
+This variable follows the same rules as `process-environment'
since it merges with it before the process creation routines are
called. When this variable is nil, the Python shell is run with
-the default `process-enviroment'."
+the default `process-environment'."
:type '(repeat string)
:group 'python
:safe 'listp)
"Calculate the string used to execute the inferior Python process."
(format "%s %s" python-shell-interpreter python-shell-interpreter-args))
-(defun python-shell-calculate-process-enviroment ()
- "Calculate process enviroment given `python-shell-virtualenv-path'."
+(defun python-shell-calculate-process-environment ()
+ "Calculate process environment given `python-shell-virtualenv-path'."
(let ((env (python-util-merge 'list python-shell-process-environment
process-environment 'string=))
(virtualenv (if python-shell-virtualenv-path
non-nil the buffer is shown."
(save-excursion
(let* ((proc-buffer-name (format "*%s*" proc-name))
- (process-environment (python-shell-calculate-process-enviroment))
+ (process-environment (python-shell-calculate-process-environment))
(exec-path (python-shell-calculate-exec-path)))
(when (not (comint-check-proc proc-buffer-name))
(let* ((cmdlist (split-string-and-unquote cmd))