Invoking python from emacs
Michael Slass
mikesl at wrq.com
Tue Aug 13 15:30:57 EDT 2002
Andrew Koenig <ark at research.att.com> writes:
>Jason> How do I tell emacs where python is? When I try to execute the buffer
>Jason> (C-c C-c)I get the following message:
>
>Jason> 'python' is not recognized as an internal or external command,
>Jason> operable program or batch file.
>
>You might start by being sure that the directory that contains
>python is mentioned in your exec-path emacs variable.
>
>--
>Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark
Andrew's answer is a good one for working from within emacs, and can
be implemented by adding something like this to your .emacs
(add-to-list exec-path "C:/PATH/TO/DIR/CONTAINING/PYTHON/EXE")
More generally, I would expect that you would want python.exe on your
path. In that case, you should add the directory containing
python.exe to your system's PATH environment variable.
--
Mike Slass
,---- WRQ, Inc.
|
| We specialize in integration software and services that let you
| quickly adapt your host-intensive environment to meet new business
| needs.
`----
More information about the Python-list
mailing list