Original Translation
1087
The incantation for making a Python script executable under WinNT is to give the file an extension of .cmd and add the following as the first line::
1088
@setlocal enableextensions & python -x %~f0 %* & goto :EOF
1089
Why does Python sometimes take so long to start?
1090
Usually Python starts very quickly on Windows, but occasionally there are bug reports that Python suddenly begins to take a long time to start up. This is made even more puzzling because Python will work fine on other Windows systems which appear to be configured identically.
1091
The problem may be caused by a misconfiguration of virus checking software on the problem machine. Some virus scanners have been known to introduce startup overhead of two orders of magnitude when the scanner is configured to monitor all reads from the filesystem. Try checking the configuration of virus scanning software on your systems to ensure that they are indeed configured identically. McAfee, when configured to scan all file system read activity, is a particular offender.
1092
Where is Freeze for Windows?
1093
"Freeze" is a program that allows you to ship a Python program as a single stand-alone executable file. It is *not* a compiler; your programs don't run any faster, but they are more easily distributable, at least to platforms with the same OS and CPU. Read the README file of the freeze program for more disclaimers.
1094
You can use freeze on Windows, but you must download the source tree (see http://www.python.org/download/source). The freeze program is in the ``Tools\freeze`` subdirectory of the source tree.
1095
You need the Microsoft VC++ compiler, and you probably need to build Python. The required project files are in the PCbuild directory.
1096
Is a ``*.pyd`` file the same as a DLL?