+ if filename.lower().endswith('.py'):
+ # on PyPy, if there are both .py and .pypy-19.so files in
+ # the same directory, the .py file is returned. That's the
+ # case after a setuptools installation. We never want to
+ # load the .py file here...
+ filename = filename[:-3] + _get_so_suffix()
+ if not os.path.isfile(filename):
self.modulefilename = filename