diff options
author | Donald Stufft <donald@stufft.io> | 2013-10-06 16:34:07 -0400 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2013-10-06 16:34:07 -0400 |
commit | b5db81cb68bca487418f6d280f767b5e171dd434 (patch) | |
tree | a1cda3bd6ce26e16f306117f6656872b2eed9dfc /cffi/vengine_gen.py | |
parent | f95a62857097a67c0ce080b5282ca60d806d65d1 (diff) | |
download | cffi-b5db81cb68bca487418f6d280f767b5e171dd434.tar.gz |
Fixes #110 - Support different so suffixes
Diffstat (limited to 'cffi/vengine_gen.py')
-rw-r--r-- | cffi/vengine_gen.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cffi/vengine_gen.py b/cffi/vengine_gen.py index 3f27947..dc38bb7 100644 --- a/cffi/vengine_gen.py +++ b/cffi/vengine_gen.py @@ -20,15 +20,15 @@ class VGenericEngine(object): # up in kwds['export_symbols']. kwds.setdefault('export_symbols', self.export_symbols) - def find_module(self, module_name, path, so_suffix): - basename = module_name + so_suffix - if path is None: - path = sys.path - for dirname in path: - filename = os.path.join(dirname, basename) - if os.path.isfile(filename): - return filename - return None + def find_module(self, module_name, path, so_suffixes): + for so_suffix in so_suffixes: + basename = module_name + so_suffix + if path is None: + path = sys.path + for dirname in path: + filename = os.path.join(dirname, basename) + if os.path.isfile(filename): + return filename def collect_types(self): pass # not needed in the generic engine |