Browse Source

Add back path=None argument into find_module. This fixes #618 and revert #524.

pull/619/head
Quentin Roy 12 years ago
parent
commit
1e39871d68
  1. 2
      scripts/flaskext_compat.py

2
scripts/flaskext_compat.py

@ -44,7 +44,7 @@ class ExtensionImporter(object):
def install(self): def install(self):
sys.meta_path[:] = [x for x in sys.meta_path if self != x] + [self] sys.meta_path[:] = [x for x in sys.meta_path if self != x] + [self]
def find_module(self, fullname): def find_module(self, fullname, path=None):
if fullname.startswith(self.prefix): if fullname.startswith(self.prefix):
return self return self

Loading…
Cancel
Save