Commits

Anonymous committed 434a95c

handle dll files in lib-dynload folder

Comments (0)

Files changed (1)

rope/refactor/importutils/actions.py

                 for name in os.listdir(dynload_path):
                     path = os.path.join(dynload_path, name)
                     if os.path.isfile(path):
-                        if name.endswith('.so'):
-                            result.add(name[:-3])
+                        if name.endswith('.so') or name.endswith('.dll'):
+                            result.add(os.path.splitext(name)[0])
             cls._standard_modules = result
         return cls._standard_modules