Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #31728 > unrolled thread

[2.5.1 + CGI] Which interpreter and files?

Started byGilles <nospam@nospam.com>
First post2012-10-19 12:02 +0200
Last post2012-10-19 12:27 +0200
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  [2.5.1 + CGI] Which interpreter and files? Gilles <nospam@nospam.com> - 2012-10-19 12:02 +0200
    Re: [2.5.1 + CGI] Which interpreter and files? Chris Angelico <rosuav@gmail.com> - 2012-10-19 21:09 +1100
      Re: [2.5.1 + CGI] Which interpreter and files? Gilles <nospam@nospam.com> - 2012-10-19 12:27 +0200

#31728 — [2.5.1 + CGI] Which interpreter and files?

FromGilles <nospam@nospam.com>
Date2012-10-19 12:02 +0200
Subject[2.5.1 + CGI] Which interpreter and files?
Message-ID<s292881uflo25ulrqfem0qk3ob83pch60d@4ax.com>
Hello

I'd like to use the Mongoose basic web server with Python which can
call scripts through CGI.

I have a coupole of questions:

1. Mongoose must be told in the shebang file where to locate the
interpreter, but ActivePython 2.5.1 comes with fours files that look
like the interpreter (actually, two files, since the other two have
the same size so they are probably left overs):
============================
01/05/2007  18:01            24.064 python.exe
01/05/2007  18:01            24.064 python25.exe
01/05/2007  18:01            24.576 pythonw.exe
01/05/2007  18:01            24.576 pythonw25.exe
============================

2. Which files and directories do I really need and must provide, and
which can I do without?
============================
Directory of C:\Python25

20/07/2007  02:38    <DIR>          DLLs
20/07/2007  02:38    <DIR>          include
02/09/2012  11:47    <DIR>          Lib
20/07/2007  02:38    <DIR>          libs
18/07/2007  15:33           348.160 msvcr71.dll
28/10/2009  12:31             2.017 psyco-wininst.log
05/04/2008  03:17             9.226 py2exe-wininst.log
20/11/2008  15:13             4.218 pysqlite-wininst.log
01/05/2007  18:01            24.064 python.exe
01/05/2007  18:01            24.064 python25.exe
01/05/2007  18:01            24.576 pythonw.exe
01/05/2007  18:01            24.576 pythonw25.exe
03/05/2010  12:01            61.440 Removeapsw.exe
28/10/2009  12:31            61.440 Removepsyco.exe
05/04/2008  03:17            61.440 Removepy2exe.exe
20/11/2008  15:13            61.440 Removepysqlite.exe
14/11/2008  18:22            61.440 Removesetuptools.exe
07/07/2010  14:43    <DIR>          Scripts
14/11/2008  18:24             9.859 setuptools-wininst.log
20/07/2007  02:39    <DIR>          tcl
20/07/2007  02:39    <DIR>          Tools
01/05/2007  18:01             4.608 w9xpopen.exe
============================

Thank you.

[toc] | [next] | [standalone]


#31730

FromChris Angelico <rosuav@gmail.com>
Date2012-10-19 21:09 +1100
Message-ID<mailman.2503.1350641403.27098.python-list@python.org>
In reply to#31728
On Fri, Oct 19, 2012 at 9:02 PM, Gilles <nospam@nospam.com> wrote:
> 1. Mongoose must be told in the shebang file where to locate the
> interpreter, but ActivePython 2.5.1 comes with fours files that look
> like the interpreter (actually, two files, since the other two have
> the same size so they are probably left overs):
> ============================
> 01/05/2007  18:01            24.064 python.exe
> 01/05/2007  18:01            24.064 python25.exe
> 01/05/2007  18:01            24.576 pythonw.exe
> 01/05/2007  18:01            24.576 pythonw25.exe
> ============================

The ones with the -w tag are designed for Windows apps that are going
to bring up a GUI and don't want a console. The python[w]25.exe ones
will be in case you have multiple Pythons installed and want to
explicitly call for version 2.5. You probably want python.exe, but
python25.exe will work too.


ChrisA

[toc] | [prev] | [next] | [standalone]


#31734

FromGilles <nospam@nospam.com>
Date2012-10-19 12:27 +0200
Message-ID<cla288tkn51f1emhqta3a9eu1ubl2o7frl@4ax.com>
In reply to#31730
On Fri, 19 Oct 2012 21:09:55 +1100, Chris Angelico <rosuav@gmail.com>
wrote:
>The ones with the -w tag are designed for Windows apps that are going
>to bring up a GUI and don't want a console. The python[w]25.exe ones
>will be in case you have multiple Pythons installed and want to
>explicitly call for version 2.5. You probably want python.exe, but
>python25.exe will work too.

Thanks for the info.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web