77 " environment variable. Use '{0}' as the separator.").format( |
77 " environment variable. Use '{0}' as the separator.").format( |
78 os.pathsep) |
78 os.pathsep) |
79 ) |
79 ) |
80 |
80 |
81 self.nameEdit.setText(venvName) |
81 self.nameEdit.setText(venvName) |
82 self.targetDirectoryPicker.setText(venvDirectory) |
82 self.targetDirectoryPicker.setText(venvDirectory, |
83 self.pythonExecPicker.setText(venvInterpreter) |
83 toNative=not isRemote) |
|
84 self.pythonExecPicker.setText(venvInterpreter, |
|
85 toNative=not isRemote) |
84 self.variantComboBox.setCurrentIndex(3 - venvVariant) |
86 self.variantComboBox.setCurrentIndex(3 - venvVariant) |
85 self.globalCheckBox.setChecked(isGlobal) |
87 self.globalCheckBox.setChecked(isGlobal) |
86 self.anacondaCheckBox.setChecked(isConda) |
88 self.anacondaCheckBox.setChecked(isConda) |
87 self.remoteCheckBox.setChecked(isRemote) |
89 self.remoteCheckBox.setChecked(isRemote) |
88 self.execPathEdit.setText(execPath) |
90 self.execPathEdit.setText(execPath) |
215 Anaconda environment, aflag indicating a remotely accessed |
217 Anaconda environment, aflag indicating a remotely accessed |
216 environment and a string to be prepended to the PATH environment |
218 environment and a string to be prepended to the PATH environment |
217 variable |
219 variable |
218 @rtype tuple of (str, str, str, int, bool, bool, bool, str) |
220 @rtype tuple of (str, str, str, int, bool, bool, bool, str) |
219 """ |
221 """ |
|
222 nativePaths = not self.remoteCheckBox.isChecked() |
220 return ( |
223 return ( |
221 self.nameEdit.text(), |
224 self.nameEdit.text(), |
222 self.targetDirectoryPicker.text(), |
225 self.targetDirectoryPicker.text(toNative=nativePaths), |
223 self.pythonExecPicker.text(), |
226 self.pythonExecPicker.text(toNative=nativePaths), |
224 3 - self.variantComboBox.currentIndex(), |
227 3 - self.variantComboBox.currentIndex(), |
225 self.globalCheckBox.isChecked(), |
228 self.globalCheckBox.isChecked(), |
226 self.anacondaCheckBox.isChecked(), |
229 self.anacondaCheckBox.isChecked(), |
227 self.remoteCheckBox.isChecked(), |
230 self.remoteCheckBox.isChecked(), |
228 self.execPathEdit.text(), |
231 self.execPathEdit.text(), |