--- a/Utilities/__init__.py Sun Mar 30 15:36:25 2014 +0200 +++ b/Utilities/__init__.py Sun Mar 30 15:57:50 2014 +0200 @@ -1329,7 +1329,8 @@ pass elif (Preferences.getProject("DeterminePyFromProject") and project.isOpen() and - project.isProjectFile(filename)): + project.isProjectFile(filename) and + ext in py2Ext + py3Ext): pyVer = pyAssignment.get(project.getProjectLanguage(), 0) elif ext in py2Ext and ext not in py3Ext: pyVer = 2