--- a/src/eric7/QScintilla/DocstringGenerator/BaseDocstringGenerator.py Wed Nov 09 10:37:21 2022 +0100 +++ b/src/eric7/QScintilla/DocstringGenerator/BaseDocstringGenerator.py Wed Nov 09 10:59:01 2022 +0100 @@ -143,16 +143,14 @@ @rtype str """ generatorModuleMapping = { - "ericdoc": "EricdocGenerator", - "numpydoc": "NumpydocGenerator", - "goodledoc": "GoogledocGenerator", - "sphinxdoc": "SphinxdocGenerator", + "ericdoc": ".EricdocGenerator", + "numpydoc": ".NumpydocGenerator", + "goodledoc": ".GoogledocGenerator", + "sphinxdoc": ".SphinxdocGenerator", } if docstringType in generatorModuleMapping: mod = importlib.import_module( - "eric7.QScintilla.DocstringGenerator.{0}".format( - generatorModuleMapping[docstringType] - ) + generatorModuleMapping[docstringType], __package__ ) return mod.generateDoc(functionInfo, self.editor)