(self, libname)
| 619 | mode = ctypes.RTLD_GLOBAL |
| 620 | |
| 621 | def getplatformpaths(self, libname): |
| 622 | if os.path.pathsep in libname: |
| 623 | names = [libname] |
| 624 | else: |
| 625 | names = [fmt % libname for fmt in self.name_formats] |
| 626 | |
| 627 | for directory in self.getdirs(libname): |
| 628 | for name in names: |
| 629 | yield os.path.join(directory, name) |
| 630 | |
| 631 | @staticmethod |
| 632 | def getdirs(libname): |