Skip to content

Commit a55448b

Browse files
committed
Update
1 parent 0957dc5 commit a55448b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@
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>

src/main/java/org/netbeans/modules/python/PythonUtility.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)