[Geany] Simple question - Michal Olber

Colomban Wendling lists.ban at xxxxx
Tue Jan 10 01:08:34 UTC 2012


Le 10/01/2012 01:30, Ross McKay a écrit :
> Ricardo Briceno wrote:
>
>> Very simple code. Maybe there is an option I need to configure:
>>
>> #!/usr/bin/env python
>> print "Hello World!"
>>
>> When I run it in Geany I get an empty shell (command language type
>> in linux) with just a $ prompt.
>
> Can you confirm that /usr/bin/env python actually gives you python? e.g.
> just type this into a terminal and tell us what output you get:
>
> /usr/bin/env python
>
> On Fedora 16, I get the python shell. If you get an error, it's probably
> because your computer doesn't have python set up correctly, or at least
> /usr/bin/env doesn't know about it.

Or maybe that it maps to Python 3, for which the above snippet isn't 
valid (print isn't a keyword anymore but a function -- e.g. needs 
parenthesis around the argument(s)).



More information about the Users mailing list