473,395 Members | 1,999 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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.

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

Fnord.
Jun 29 '07 #1
0 861

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephen Ferg | last post by:
Seen in the Wall Street Journal, Monday, July 21, 2003, page B1. Lee Gomes' "Portals" technology column: "Two Men, Two Ways to Speak Computerese and Two Big Successes". This is a brief,...
1
by: Skip Montanaro | last post by:
This is kinda off-topic for this group, but since I'm packaging Python perhaps not too far OT. I built a Solaris package for Python 2.3.3 then copied it to another system and installed it. ...
4
by: Igor Fedorow | last post by:
Hello all, I have an XML file with an internal DTD which looks roughly like this: <?xml version="1.0"?> <!DOCTYPE root > ]> <root> <node>
9
by: kbass | last post by:
I am starting to learn Python but I want to know how the job market looks for programming using Python. I really don't see many jobs (probably one or two) that require Python experience at all....
0
by: Andrea | last post by:
Hello NG, I'm trying to follow the mayavi documentation in order to run mayavi from python. In "Chapter 4. Using MayaVi from Python", there is a simple example like this: # generate the data....
3
by: jason.massey | last post by:
Hi all, I've got a weird problem. I was running Python 2.3 and MySQLdb and had everything running fine. Cutting to the chase: After upgrading to 2.4 (and latest modules) the MySQLdb...
3
by: Thomas Ploch | last post by:
Hello folks, Since this is my first post on the list, a brief introduction of myself. My name is Thomas, I am 26 years old, I am a student of Computational Linguistics and I am a python...
3
by: Andrew Koenig | last post by:
<xahlee@gmail.comwrote in message news:929d5ce9-9063-4e6c-98aa-89526f89fba3@y18g2000pre.googlegroups.com... I think that this claim says more about its author than it does about its subject. ...
4
by: sui | last post by:
Hii i want a script to send sms to any mobile..... can u help me ?? Thanks in advance......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.