diff -r d6f374ab42eb -r a8eb084b974e eric7/eric7_api.py --- a/eric7/eric7_api.py Sun Jun 06 15:24:44 2021 +0200 +++ b/eric7/eric7_api.py Sun Jun 06 16:24:01 2021 +0200 @@ -193,6 +193,10 @@ DocumentationTools.supportedExtensionsDictForApis[progLanguage] ) supportedExtensions.extend(extensions) + + if not outputFileName.endswith(".api"): + # append the .api extension, if not given by the user + outputFileName += ".api" if "%L" in outputFileName: outputFile = outputFileName.replace("%L", progLanguage) else: