Python launcher (PEP 397) and emacs python-mode.el

Thomas Heller theller at ctypes.org
Thu Jan 31 21:53:23 CET 2013


Am 31.01.2013 19:26, schrieb Vinay Sajip:
> Thomas Heller <theller <at> ctypes.org> writes:
>
>> <script>
>> #!/usr/bin/python3.1-32
>> import sys; print(sys.version)
>> </script>
>>
>> The python launcher starts 'c:\Python31\python.exe -3.1-32 script.py'.
>>
>
> That doesn't seem right, the launcher on my system launches using
>
> c:\Python31\python.exe script.py
>
> if I just run script.py, or if I invoke it as
>
> py -3.1-32 script.py
>
> it still launches using
>
> c:\Python31\python.exe script.py

Sorry for the confusion that I am causing.  Vinay, you are right of course.

What I meant to write is this:

when the shebang line in script.py contains this:
   #!/usr/bin/python3.1-32
then emacs SHOULD run
   py.exe -3.1-32 script.py
and the launcher runs
   c:\Python31\python.exe script.py


Thomas




More information about the Python-list mailing list