153 args, parms = dlg.generateParameters() |
153 args, parms = dlg.generateParameters() |
154 project.setData('DOCUMENTATIONPARMS', "ERIC4API", parms) |
154 project.setData('DOCUMENTATIONPARMS', "ERIC4API", parms) |
155 |
155 |
156 # add parameter for the eol setting |
156 # add parameter for the eol setting |
157 if not project.useSystemEol(): |
157 if not project.useSystemEol(): |
158 args.append("--eol=%s" % eolTranslation[project.getEolString()]) |
158 args.append("--eol={0}".format(eolTranslation[project.getEolString()])) |
159 |
159 |
160 # now do the call |
160 # now do the call |
161 dia = EricapiExecDialog("Ericapi") |
161 dia = EricapiExecDialog("Ericapi") |
162 res = dia.start(args, project.ppath) |
162 res = dia.start(args, project.ppath) |
163 if res: |
163 if res: |
172 else: |
172 else: |
173 if len(parms['languages']) == 1: |
173 if len(parms['languages']) == 1: |
174 outfile = outputFileName |
174 outfile = outputFileName |
175 else: |
175 else: |
176 root, ext = os.path.splitext(outputFileName) |
176 root, ext = os.path.splitext(outputFileName) |
177 outfile = "%s-%s%s" % (root, progLanguage.lower(), ext) |
177 outfile = "{0}-{1}{2}".format(root, progLanguage.lower(), ext) |
178 |
178 |
179 outfile = project.getRelativePath(outfile) |
179 outfile = project.getRelativePath(outfile) |
180 if outfile not in project.pdata['OTHERS']: |
180 if outfile not in project.pdata['OTHERS']: |
181 project.pdata['OTHERS'].append(outfile) |
181 project.pdata['OTHERS'].append(outfile) |
182 project.setDirty(True) |
182 project.setDirty(True) |