On 01/09/2012 05:08 PM, Colomban Wendling wrote:
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)).
I think it'd at least print a SyntaxError on the console or something, wouldn't it?
Cheers, Matthew Brush