src/eric7/Plugins/PluginEricapi.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9514
2b104ad132a4
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
171 Private slot to perform the eric7_api api generation. 171 Private slot to perform the eric7_api api generation.
172 """ 172 """
173 from eric7.Plugins.DocumentationPlugins.Ericapi.EricapiConfigDialog import ( 173 from eric7.Plugins.DocumentationPlugins.Ericapi.EricapiConfigDialog import (
174 EricapiConfigDialog, 174 EricapiConfigDialog,
175 ) 175 )
176 from eric7.Plugins.DocumentationPlugins.Ericapi.EricapiExecDialog import (
177 EricapiExecDialog,
178 )
176 179
177 eolTranslation = { 180 eolTranslation = {
178 "\r": "cr", 181 "\r": "cr",
179 "\n": "lf", 182 "\n": "lf",
180 "\r\n": "crlf", 183 "\r\n": "crlf",
192 # add parameter for the eol setting 195 # add parameter for the eol setting
193 if not project.useSystemEol(): 196 if not project.useSystemEol():
194 args.append("--eol={0}".format(eolTranslation[project.getEolString()])) 197 args.append("--eol={0}".format(eolTranslation[project.getEolString()]))
195 198
196 # now do the call 199 # now do the call
197 from eric7.Plugins.DocumentationPlugins.Ericapi.EricapiExecDialog import (
198 EricapiExecDialog,
199 )
200
201 dia = EricapiExecDialog("Ericapi") 200 dia = EricapiExecDialog("Ericapi")
202 res = dia.start(args, startDir) 201 res = dia.start(args, startDir)
203 if res: 202 if res:
204 dia.exec() 203 dia.exec()
205 204

eric ide

mercurial