eric7/Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py

branch
eric7
changeset 9016
6f079c524e99
parent 8881
54e42bc2437a
equal deleted inserted replaced
9015:dfeefad914ed 9016:6f079c524e99
5 5
6 """ 6 """
7 Module implementing a dialog to enter the parameters for eric7_api. 7 Module implementing a dialog to enter the parameters for eric7_api.
8 """ 8 """
9 9
10 import sys
11 import os 10 import os
12 import copy 11 import copy
13 12
14 from PyQt6.QtCore import pyqtSlot, Qt 13 from PyQt6.QtCore import pyqtSlot, Qt
15 from PyQt6.QtWidgets import QDialog, QDialogButtonBox 14 from PyQt6.QtWidgets import QDialog, QDialogButtonBox
16 15
17 from EricWidgets.EricPathPicker import EricPathPickerModes 16 from EricWidgets.EricPathPicker import EricPathPickerModes
18 17
19 from .Ui_EricapiConfigDialog import Ui_EricapiConfigDialog 18 from .Ui_EricapiConfigDialog import Ui_EricapiConfigDialog
19
20 import Globals
20 import Utilities 21 import Utilities
21 import DocumentationTools 22 import DocumentationTools
22 23
23 from eric7config import getConfig 24 from eric7config import getConfig
24 25
109 else: 110 else:
110 self.defaults['languages'] = ["Python3"] 111 self.defaults['languages'] = ["Python3"]
111 112
112 def generateParameters(self): 113 def generateParameters(self):
113 """ 114 """
114 Public method that generates the commandline parameters. 115 Public method that generates the command line parameters.
115 116
116 It generates a list of strings to be used 117 It generates a list of strings to be used
117 to set the QProcess arguments for the ericapi call and 118 to set the QProcess arguments for the ericapi call and
118 a dictionary containing the non default parameters. This 119 a dictionary containing the non default parameters. This
119 dictionary can be passed back upon object generation to overwrite 120 dictionary can be passed back upon object generation to overwrite
124 """ 125 """
125 parms = {} 126 parms = {}
126 args = [] 127 args = []
127 128
128 # 1. the program name 129 # 1. the program name
129 args.append(sys.executable) 130 args.append(Globals.getPythonExecutable())
130 args.append( 131 args.append(
131 Utilities.normabsjoinpath(getConfig('ericDir'), "eric7_api.py")) 132 Utilities.normabsjoinpath(getConfig('ericDir'), "eric7_api.py"))
132 133
133 # 2. the commandline options 134 # 2. the commandline options
134 if self.parameters['outputFile'] != self.defaults['outputFile']: 135 if self.parameters['outputFile'] != self.defaults['outputFile']:

eric ide

mercurial