Project/Project.py

branch
5_1_x
changeset 1238
5e9e288d04de
parent 1174
53ae8212ccdb
child 1493
876e068d632d
equal deleted inserted replaced
1236:7a58aba00647 1238:5e9e288d04de
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 """

eric ide

mercurial