src/eric7/Plugins/PluginEricdoc.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9514
2b104ad132a4
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
215 Private slot to perform the eric7_doc api documentation generation. 215 Private slot to perform the eric7_doc api documentation generation.
216 """ 216 """
217 from eric7.Plugins.DocumentationPlugins.Ericdoc.EricdocConfigDialog import ( 217 from eric7.Plugins.DocumentationPlugins.Ericdoc.EricdocConfigDialog import (
218 EricdocConfigDialog, 218 EricdocConfigDialog,
219 ) 219 )
220 from eric7.Plugins.DocumentationPlugins.Ericdoc.EricdocExecDialog import (
221 EricdocExecDialog,
222 )
220 223
221 eolTranslation = { 224 eolTranslation = {
222 "\r": "cr", 225 "\r": "cr",
223 "\n": "lf", 226 "\n": "lf",
224 "\r\n": "crlf", 227 "\r\n": "crlf",
236 # add parameter for the eol setting 239 # add parameter for the eol setting
237 if not project.useSystemEol(): 240 if not project.useSystemEol():
238 args.append("--eol={0}".format(eolTranslation[project.getEolString()])) 241 args.append("--eol={0}".format(eolTranslation[project.getEolString()]))
239 242
240 # now do the call 243 # now do the call
241 from eric7.Plugins.DocumentationPlugins.Ericdoc.EricdocExecDialog import (
242 EricdocExecDialog,
243 )
244
245 dia = EricdocExecDialog("Ericdoc") 244 dia = EricdocExecDialog("Ericdoc")
246 res = dia.start(args, startDir) 245 res = dia.start(args, startDir)
247 if res: 246 if res:
248 dia.exec() 247 dia.exec()
249 248

eric ide

mercurial