<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Calvelo Daniel wrote:
<blockquote TYPE=CITE> 
<br>It seems that your script is not interpreted by Python. Those are not
<br>Python errors.</blockquote>

<p><br>No, the script is interpreted.  The problem is  importing 
the  libraries:
<p><font face="Courier New,Courier">/home/olav> cat hello.py</font>
<br><font face="Courier New,Courier">print "Hello world"</font>
<br><font face="Courier New,Courier">/home/olav> hello.py</font>
<br><font face="Courier New,Courier">Can't find file Hello world</font>
<br><font face="Courier New,Courier">/home/olav> cat hello2.py</font>
<br><font face="Courier New,Courier">import os</font>
<br><font face="Courier New,Courier">print "Hello world"</font>
<br><font face="Courier New,Courier">/home/olav> hello2.py</font>
<br><font face="Courier New,Courier">import: not found</font>
<br><font face="Courier New,Courier">Can't find file Hello world</font>
<br><font face="Courier New,Courier">/home/olav> python hello2.py</font>
<br><font face="Courier New,Courier">Hello world</font>
<br><font face="Courier New,Courier">/home/olav></font>
<p>(....That it is trying to look for the file-name instead of printing
is also interesting.....)
<br> 
<blockquote TYPE=CITE> 
<br>I tried to use a script with a '#!/usr/bin/env python' first line
<br>and it works exactly as in UNIX, ie call it directly after a 'chmod
+x'.</blockquote>
I am uing PATHEXT=.COM;.EXE;.BAT;.CMD;.ph
<br>(in the NT environment this variable is in fact not visible in cygwin)
<p>.....Though perhaps I should look into the "#"-way of doing it?
<br> 
<p><i><font color="#3366FF">Merci!</font></i>
<br><i><font color="#3366FF">Olav</font></i>
<br> </html>