Skip to content

Commit 5725735

Browse files
committed
Support more layouts of Python on Windows
1 parent c78ac5c commit 5725735

File tree

1 file changed

+9
-0
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/copying

1 file changed

+9
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/copying/PEFile.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ private String getDelvewheelPython() {
8181
if (!python.exists()) {
8282
python = delvewheel.resolveSibling("python.cmd");
8383
}
84+
if (!python.exists()) {
85+
python = delvewheel.getParent().resolveSibling("python.exe");
86+
}
87+
if (!python.exists()) {
88+
python = delvewheel.getParent().resolveSibling("python.bat");
89+
}
90+
if (!python.exists()) {
91+
python = delvewheel.getParent().resolveSibling("python.cmd");
92+
}
8493
return python.toString();
8594
}
8695

0 commit comments

Comments
 (0)