Hi all,  Is there an appropriate way to facilitate loading the
appropriate binary (hence, platform dependent) module based on
some information from the python interpreter (e.g.
sys.version_info, sys.maxsize, platform.system(),
platform.architecture()). Is this maybe even something the
community could standardise on?  Right now I put several
binaries in various folders and change the generated wrapper
file, say my_module.py, accordingly [not adapted for py25 and
below, just as an example]:   # Do not make changes to this file
unless you know what you are doing--modify   # the SWIG
interface file instead.  + # TK: NB: Changes are made to
facilitate loading appropriate binary for current platform  
from sys import version_info   if version_info >= (2,6,0): +    
def get_search_path(): +         import os, platform +        
dn = os.path.dirname(__file__) +         if
os.path.exists(os.path.join(dn, 'lib')): +             dn =
os.path.join(dn, 'lib', platform.system(),
platform.architecture()[0]) +         return