471,325 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

Python & cgi on win98--tinyweb problems, etc

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.

-Kirk Bailey
| BOX |

Jun 29 '07 #1
0 797

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Stephen Ferg | last post: by
4 posts views Thread by Igor Fedorow | last post: by
9 posts views Thread by kbass | last post: by
reply views Thread by Andrea | last post: by
3 posts views Thread by jason.massey | last post: by
3 posts views Thread by Thomas Ploch | last post: by
3 posts views Thread by Andrew Koenig | last post: by
4 posts views Thread by sui | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.