Preferences/ConfigurationPages/CondaPage.py

branch
conda
changeset 6697
2f5c951bdf14
parent 6678
5f1de9e59227
equal deleted inserted replaced
6696:706185900558 6697:2f5c951bdf14
33 self.condaExePicker.setToolTip(self.tr( 33 self.condaExePicker.setToolTip(self.tr(
34 "Press to select the conda executable via a file selection" 34 "Press to select the conda executable via a file selection"
35 " dialog.")) 35 " dialog."))
36 36
37 # set initial values 37 # set initial values
38 self.condaExePicker.setText(Preferences.getConda("CondaExecutable")) 38 self.__condaExecutable = Preferences.getConda("CondaExecutable")
39 self.condaExePicker.setText(self.__condaExecutable)
39 40
40 def save(self): 41 def save(self):
41 """ 42 """
42 Public slot to save the conda configuration. 43 Public slot to save the conda configuration.
43 """ 44 """
44 Preferences.setConda("CondaExecutable", self.condaExePicker.text()) 45 condaExecutable = self.condaExePicker.text()
46 if condaExecutable != self.__condaExecutable:
47 Preferences.setConda("CondaExecutable", condaExecutable)
48
49 import CondaInterface
50 CondaInterface.resetInterface()
45 51
46 52
47 def create(dlg): 53 def create(dlg):
48 """ 54 """
49 Module function to create the configuration page. 55 Module function to create the configuration page.

eric ide

mercurial