Extensions on Windows, questions for experts.
gmcm at hypernet.com
Tue Jan 15 10:35:11 EST 2002
Michel Van den Bergh wrote:
> Has anybody used this to produce Python-version independent
> extensions? The steps one would need to take are:
> (1) Find current version of Python in registry.
This machine has 1.5.2, 2.1.1 and 2b2 on it (with 2.1 being
registered). This would also cause problems for py2exe or
Installer, since they're designed to allow packaging up an
app and running it on a machine with no Python, or a different
version of Python.
You could do repeated calls to GetModuleHandle until one
succeeds. Deciding when to start / give up is another problem.
More information about the Python-list