Skip to content

Commit 2522c1e

Browse files
committed
Ignore python from cygwin environment
1 parent 980ad1e commit 2522c1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/misc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ export async function getPythonExecutable(useBuiltinPIOCore=true, customDirs = n
164164

165165
function isPython2(executable) {
166166
const pythonLines = [
167+
'import platform',
167168
'import sys',
169+
'assert "cygwin" not in platform.system().lower()',
168170
'assert "msys" not in sys.executable.lower()',
169171
'assert sys.version_info < (3, 0, 0)'
170172
];

0 commit comments

Comments
 (0)