Utilities/__init__.py

branch
5_1_x
changeset 1168
68d25b6dd44d
parent 1125
4ecd7e08246b
child 1175
93655105b6de
equal deleted inserted replaced
1165:70d4137b615c 1168:68d25b6dd44d
1149 valid, if the status is True. The pyflakes list will be empty, if a 1149 valid, if the status is True. The pyflakes list will be empty, if a
1150 syntax error was detected by the syntax checker. 1150 syntax error was detected by the syntax checker.
1151 """ 1151 """
1152 interpreter = Preferences.getDebugger("PythonInterpreter") 1152 interpreter = Preferences.getDebugger("PythonInterpreter")
1153 if interpreter == "" or not isinpath(interpreter): 1153 if interpreter == "" or not isinpath(interpreter):
1154 return (True, file, "1", "", 1154 return (False, "", "", "", "", [(
1155 "", "1",
1155 QCoreApplication.translate("Utilities", 1156 QCoreApplication.translate("Utilities",
1156 "Python2 interpreter not configured."), 1157 "Python2 interpreter not configured.")
1157 []) 1158 )])
1158 1159
1159 syntaxChecker = os.path.join(getConfig('ericDir'), 1160 syntaxChecker = os.path.join(getConfig('ericDir'),
1160 "UtilitiesPython2", "Py2SyntaxChecker.py") 1161 "UtilitiesPython2", "Py2SyntaxChecker.py")
1161 args = [syntaxChecker] 1162 args = [syntaxChecker]
1162 if checkFlakes: 1163 if checkFlakes:

eric ide

mercurial