Project/Project.py

changeset 1239
697757468865
parent 1172
a183f45d3553
child 1491
985c5abc8226
equal deleted inserted replaced
1237:a6b7e93f649c 1239:697757468865
196 196
197 self.sourceExtensions = { 197 self.sourceExtensions = {
198 "Python2": Preferences.getPython("PythonExtensions"), 198 "Python2": Preferences.getPython("PythonExtensions"),
199 "Python3": Preferences.getPython("Python3Extensions"), 199 "Python3": Preferences.getPython("Python3Extensions"),
200 "Ruby": ['.rb'], 200 "Ruby": ['.rb'],
201 "Mixed": ['.py', '.ptl', '.rb'] 201 "Mixed": Preferences.getPython("Python3Extensions") + ['.rb'],
202 } 202 }
203 203
204 self.dbgFilters = { 204 self.dbgFilters = {
205 "Python2": self.trUtf8( 205 "Python2": self.trUtf8(
206 "Python2 Files (*.py2);;" 206 "Python2 Files (*.py2);;"
2678 programming language. 2678 programming language.
2679 2679
2680 @return default extension (including the dot) (string) 2680 @return default extension (including the dot) (string)
2681 """ 2681 """
2682 if self.pdata["PROGLANGUAGE"]: 2682 if self.pdata["PROGLANGUAGE"]:
2683 return self.sourceExtensions[self.pdata["PROGLANGUAGE"][0]][0] 2683 lang = self.pdata["PROGLANGUAGE"][0]
2684 if lang == "":
2685 lang = "Python3"
2686 elif lang == "Python":
2687 lang = "Python2"
2688 return self.sourceExtensions[lang][0]
2684 else: 2689 else:
2685 return "" 2690 return ""
2686 2691
2687 def getProjectPath(self): 2692 def getProjectPath(self):
2688 """ 2693 """

eric ide

mercurial