23 |
23 |
24 from eric5config import getConfig |
24 from eric5config import getConfig |
25 |
25 |
26 class EricapiConfigDialog(QDialog, Ui_EricapiConfigDialog): |
26 class EricapiConfigDialog(QDialog, Ui_EricapiConfigDialog): |
27 """ |
27 """ |
28 Class implementing a dialog to enter the parameters for eric5-api. |
28 Class implementing a dialog to enter the parameters for eric5_api. |
29 """ |
29 """ |
30 def __init__(self, project, parms = None, parent = None): |
30 def __init__(self, project, parms = None, parent = None): |
31 """ |
31 """ |
32 Constructor |
32 Constructor |
33 |
33 |
115 parms = {} |
115 parms = {} |
116 args = [] |
116 args = [] |
117 |
117 |
118 # 1. the program name |
118 # 1. the program name |
119 args.append(sys.executable) |
119 args.append(sys.executable) |
120 args.append(Utilities.normabsjoinpath(getConfig('ericDir'), "eric5-api.py")) |
120 args.append(Utilities.normabsjoinpath(getConfig('ericDir'), "eric5_api.py")) |
121 |
121 |
122 # 2. the commandline options |
122 # 2. the commandline options |
123 if self.parameters['outputFile'] != self.defaults['outputFile']: |
123 if self.parameters['outputFile'] != self.defaults['outputFile']: |
124 parms['outputFile'] = Utilities.fromNativeSeparators( |
124 parms['outputFile'] = Utilities.fromNativeSeparators( |
125 self.project.getRelativePath(self.parameters['outputFile'])) |
125 self.project.getRelativePath(self.parameters['outputFile'])) |