190 QObject.__init__(self, parent) |
190 QObject.__init__(self, parent) |
191 |
191 |
192 self.ui = parent |
192 self.ui = parent |
193 |
193 |
194 self.sourceExtensions = { |
194 self.sourceExtensions = { |
195 "Python2" : Preferences.getPython("PythonExtensions"), |
195 "Python2" : Preferences.getPython("PythonExtensions"), |
196 "Python3" : Preferences.getPython("Python3Extensions"), |
196 "Python3" : Preferences.getPython("Python3Extensions"), |
197 "Ruby" : ['.rb'], |
197 "Ruby" : ['.rb'], |
198 "Mixed" : ['.py', '.ptl', '.rb'] |
198 "Mixed" : Preferences.getPython("Python3Extensions") + ['.rb'], |
199 } |
199 } |
200 |
200 |
201 self.dbgFilters = { |
201 self.dbgFilters = { |
202 "Python2" : self.trUtf8( |
202 "Python2" : self.trUtf8( |
203 "Python2 Files (*.py2);;" |
203 "Python2 Files (*.py2);;" |
2677 programming language. |
2677 programming language. |
2678 |
2678 |
2679 @return default extension (including the dot) (string) |
2679 @return default extension (including the dot) (string) |
2680 """ |
2680 """ |
2681 if self.pdata["PROGLANGUAGE"]: |
2681 if self.pdata["PROGLANGUAGE"]: |
2682 return self.sourceExtensions[self.pdata["PROGLANGUAGE"][0]][0] |
2682 lang = self.pdata["PROGLANGUAGE"][0] |
|
2683 if lang == "": |
|
2684 lang = "Python3" |
|
2685 elif lang == "Python": |
|
2686 lang = "Python2" |
|
2687 return self.sourceExtensions[lang][0] |
2683 else: |
2688 else: |
2684 return "" |
2689 return "" |
2685 |
2690 |
2686 def getProjectPath(self): |
2691 def getProjectPath(self): |
2687 """ |
2692 """ |