Menu DEVPPL Search
157.913
MEMBERS
15.939
TOPICS
63.222
POSTS
  562
FLASH GAMES
7.717
TUTORIALS
 

Login

E-mail:
Password:

Invalid path for Python with Windows

0

Loading

Invalid path for Python with Windows

Postby Yotta » Fri Jun 03, 2011 11:21 pm

Hi
i am a new with python and trying to execute a script on my computer with windows OS.
in the example that i am running the first line of the script indicate the path of the python /usr/bin/python but because i am using windows that don't work , can you help me with that to execute my script correctly.

SCRIPT
Code: Select all
 #!/usr/bin/python
      # -*- coding: utf-8 -*-
      # Affichage d'un formulaire HTML simplifié :

      print "Content-Type: text/html\n"
      print """
      <H3><FONT COLOR="Royal blue">
      Page web produite par un script Python
      </FONT></H3>
      <FORM ACTION="print_result.py" METHOD="post">
      <P>Veuillez entrer votre nom dans le champ ci-dessous, s.v.p. :</P>
      <P><INPUT NAME="visiteur" SIZE=20 MAXLENGTH=20 TYPE="text"></P>
      <P>Veuillez également me fournir une phrase quelconque :</P>
      <TEXTAREA NAME="phrase" ROWS=2 COLS=50>Mississippi</TEXTAREA>
      <P>J'utiliserai cette phrase pour établir un histogramme.</P>
      <INPUT TYPE="submit" NAME="send" VALUE="Action">
      </FORM>
      """


CODE HTML
Code: Select all
   <HTML>
      <HEAD><TITLE>Using Python</TITLE></HEAD>

      <BODY>
      <DIV ALIGN="center">
      <IMG SRC="penguin.gif">
      <H2>Page Web interactive</H2>
      <P>Cette page est associée à un script Python</P>
      <FORM ACTION="../test/input_query.py" METHOD="post">
      <INPUT TYPE="submit" NAME="send" VALUE="Exécuter le script">
      </FORM>
      </DIV></BODY></HTML>
Yotta
 
Reputation: 0
Posts: 1
Joined: Fri Jun 03, 2011 10:56 pm
Highscores: 0
Arcade winning challenges: 0

Invalid path for Python with Windows - Sponsored results

Sponsored results

Login to get rid of ads

 

^ Back to Top