|
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
|
|
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?
|
|