File tree Expand file tree Collapse file tree
src/main/java/org/netbeans/modules/python Expand file tree Collapse file tree Original file line number Diff line number Diff line change 749749 <properties >
750750 <dev .name>albilu</dev .name>
751751 <netbeans .release.version>RELEASE170</netbeans .release.version>
752- <next .version>0.4 </next .version>
752+ <next .version>0.5 </next .version>
753753 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
754754 </properties >
755755</project >
Original file line number Diff line number Diff line change @@ -275,9 +275,9 @@ public static Properties getProperties(@NonNull Project project) throws IOExcept
275275
276276 public static String getVersion (String projectPythonExe ) throws IOException {
277277 String commandOutput = getCommandOutput (new String []{projectPythonExe , "--version" }, null );
278- //Python 2.7 print CLI output to stderr instead of stdout causing the version to not be retrieved
279- if (commandOutput .isEmpty () && projectPythonExe .contains ("2.7 " )) {
280- commandOutput = "Python 2.7 " ;
278+ //Python 2 print CLI output to stderr instead of stdout causing the version to not be retrieved
279+ if (commandOutput .isEmpty () && projectPythonExe .contains ("python2 " )) {
280+ commandOutput = "Python 2" ;
281281 }
282282 return commandOutput ;
283283 }
You can’t perform that action at this time.
0 commit comments