Python & cgi on win98--tinyweb problems, etc

K

Kirk Bailey

RE: TinyWeb running python in windows

PROBLEM: getting python scripts to execute.
SOLUTION: Insure the script ends in the name extension .py.

Windows associates all such files with the pythonw.exe interpreter program,
and will use it to interpret them. IT IGNORES THE SHEBANG (the first line in
a script which in the lovely world of un*x points to the interpreter
program). Some servers have config files to tell the server what to use.
TinyWeb does not, and relies on windows file associations to direct it to
the proper interpreter.

Also note that it is possible for windows to conceal name extensions in some
configurations, and also to create name extensions it does not display,
resulting in some interesting hair pulling evenings chasing bugs.

Also note that tinyweb checks for the existence of a default page to use if
none is specified in an incoming request. IF YOU CHANGE THE FILE NAME AFTER
TINY LOADS IT WILL BARK LIKE A DOG. For instance, index.htm or index.html
are equally acceptable. You had .htm. then you decided to change it to
..html- and the server started woofing. It thinks the file index.htm still is
there someplace and is looking for it! If you change the file name, restart
the server.

I used tinyweb in supporting the development of windows wiki, and in all
that crazy alpha stage flakiness, it NOT ONCE blew out. It is BULLETPROOF.

But it is it's own strange beast, and has it's own peculiarities.

--
Salute!
-Kirk Bailey
Think
+-----+
| BOX |
+-----+
knihT

Fnord.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top