Fixed FileFinder importer for plugin detection in portable.

Updated setuptools version for openslides-gui.
This commit is contained in:
Emanuel Schuetze 2015-06-12 23:45:52 +02:00
parent 237b0630ca
commit ea908419be
2 changed files with 2 additions and 3 deletions

View File

@ -28,8 +28,7 @@ def get_plugins_from_path(path):
Collects all modules/packages in the given `path`
and returns a tuple of their names
"""
importer = pkgutil.get_importer(path)
return tuple(x[0] for x in importer.iter_modules())
return tuple(x[1] for x in pkgutil.iter_modules([path]))
def collect_plugins():

View File

@ -10,7 +10,7 @@ jsonfield>=0.9.19,<1.1
natsort>=3.2,<3.6
reportlab>=3.0,<3.2
roman>=2.0,<2.1
setuptools>=2.1,<7.1
setuptools>=2.2,<18.0
sockjs-tornado>=1.0,<1.1
tornado>=2.1,<4.1
whoosh>=2.5.6,<2.6