67 self.venvComboBox.addItems(sorted(venvManager.getVirtualenvNames())) |
67 self.venvComboBox.addItems(sorted(venvManager.getVirtualenvNames())) |
68 |
68 |
69 if self.project.debugProperties["VIRTUALENV"]: |
69 if self.project.debugProperties["VIRTUALENV"]: |
70 venvIndex = max( |
70 venvIndex = max( |
71 0, |
71 0, |
72 self.venvComboBox.findText(self.project.debugProperties["VIRTUALENV"]), |
72 self.venvComboBox.findText( |
|
73 self.project.debugProperties["VIRTUALENV"] |
|
74 ), |
73 ) |
75 ) |
74 else: |
76 else: |
75 if self.project.pdata["PROGLANGUAGE"] == "Python3": |
77 if self.project.pdata["PROGLANGUAGE"] == "Python3": |
76 venvName = Preferences.getDebugger("Python3VirtualEnv") |
78 venvName = Preferences.getDebugger("Python3VirtualEnv") |
77 else: |
79 else: |