--- a/Project/DebuggerPropertiesDialog.py Wed Aug 17 17:52:52 2016 +0200 +++ b/Project/DebuggerPropertiesDialog.py Thu Aug 18 17:02:21 2016 +0200 @@ -54,24 +54,24 @@ self.interpreterPicker.setText( self.project.debugProperties["INTERPRETER"]) else: - if self.project.pdata["PROGLANGUAGE"][0] in \ + if self.project.pdata["PROGLANGUAGE"] in \ ["Python", "Python2", "Python3"]: self.interpreterPicker.setText(sys.executable) - elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby": + elif self.project.pdata["PROGLANGUAGE"] == "Ruby": self.interpreterPicker.setText("/usr/bin/ruby") if self.project.debugProperties["DEBUGCLIENT"]: self.debugClientPicker.setText( self.project.debugProperties["DEBUGCLIENT"]) else: - if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2"]: + if self.project.pdata["PROGLANGUAGE"] in ["Python", "Python2"]: debugClient = os.path.join( getConfig('ericDir'), "DebugClients", "Python", "DebugClient.py") - elif self.project.pdata["PROGLANGUAGE"][0] == "Python3": + elif self.project.pdata["PROGLANGUAGE"] == "Python3": debugClient = os.path.join( getConfig('ericDir'), "DebugClients", "Python3", "DebugClient.py") - elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby": + elif self.project.pdata["PROGLANGUAGE"] == "Ruby": debugClient = os.path.join( getConfig('ericDir'), "DebugClients", "Ruby", "DebugClient.rb") @@ -112,8 +112,7 @@ Private slot to perform actions before the debug client selection dialog is shown. """ - filters = self.project.dbgFilters[ - self.project.pdata["PROGLANGUAGE"][0]] + filters = self.project.dbgFilters[self.project.pdata["PROGLANGUAGE"]] filters += self.tr("All Files (*)") self.debugClientPicker.setFilters(filters) @@ -124,24 +123,24 @@ self.project.debugProperties["INTERPRETER"] = \ self.interpreterPicker.text() if not self.project.debugProperties["INTERPRETER"]: - if self.project.pdata["PROGLANGUAGE"][0] in \ + if self.project.pdata["PROGLANGUAGE"] in \ ["Python", "Python2", "Python3"]: self.project.debugProperties["INTERPRETER"] = sys.executable - elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby": + elif self.project.pdata["PROGLANGUAGE"] == "Ruby": self.project.debugProperties["INTERPRETER"] = "/usr/bin/ruby" self.project.debugProperties["DEBUGCLIENT"] = \ self.debugClientPicker.text() if not self.project.debugProperties["DEBUGCLIENT"]: - if self.project.pdata["PROGLANGUAGE"][0] in ["Python", "Python2"]: + if self.project.pdata["PROGLANGUAGE"] in ["Python", "Python2"]: debugClient = os.path.join( getConfig('ericDir'), "DebugClients", "Python", "DebugClient.py") - elif self.project.pdata["PROGLANGUAGE"][0] == "Python3": + elif self.project.pdata["PROGLANGUAGE"] == "Python3": debugClient = os.path.join( getConfig('ericDir'), "DebugClients", "Python3", "DebugClient.py") - elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby": + elif self.project.pdata["PROGLANGUAGE"] == "Ruby": debugClient = os.path.join( getConfig('ericDir'), "DebugClients", "Ruby", "DebugClient.rb")