Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py

changeset 908
d00447340771
parent 882
34b86be88bf0
child 945
8cd4d08fa9f6
equal deleted inserted replaced
907:74904673b366 908:d00447340771
2 2
3 # Copyright (c) 2004 - 2011 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2004 - 2011 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to enter the parameters for eric5-api. 7 Module implementing a dialog to enter the parameters for eric5_api.
8 """ 8 """
9 9
10 import sys 10 import sys
11 import os 11 import os
12 import copy 12 import copy
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']))

eric ide

mercurial