Index: modlib/modeller/__init__.py
===================================================================
--- modlib/modeller/__init__.py	(revision 6521)
+++ modlib/modeller/__init__.py	(revision 6522)
@@ -25,9 +25,17 @@
 except ImportError:
     config = None
 
+def get_python_api_ver():
+    """Get the Python version at which the C API last changed."""
+    ver = sys.version_info[0:2]
+    if ver == (2,6):
+        return (2,5)
+    else:
+        return ver
+
 # Special processing on Windows to find _modeller.pyd and Modeller DLLs:
 if hasattr(config, 'install_dir') and hasattr(sys, 'dllhandle'):
-    dpath = config.install_dir + '\\modlib\\python%d.%d' % sys.version_info[0:2]
+    dpath = config.install_dir + '\\modlib\\python%d.%d' % get_python_api_ver()
     if dpath not in sys.path:
         sys.path.insert(0, dpath)
     try:
@@ -47,7 +55,7 @@
         for (n, pathcomp) in enumerate(sys.path):
             if srch.match(pathcomp):
                 modpath = os.path.join(pathcomp,
-                                       'python%d.%d' % sys.version_info[0:2])
+                                       'python%d.%d' % get_python_api_ver())
                 if modpath not in sys.path:
                     sys.path.insert(n, modpath)
                 break
