Skip to content

Commit 68ca88a

Browse files
committed
has_python: allowed R2022b+
1 parent 7f47659 commit 68ca88a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

+stdlib/has_python.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
%% HAS_PYTHON checks if Python is available in the current environment.
2+
%
3+
% https://www.mathworks.com/support/requirements/python-compatibility.html
24

35
function y = has_python()
46

7+
if isMATLABReleaseOlderThan('R2022b')
8+
% Matlab this old doesn't work as nice with Python
9+
% also, R2022b was the first to support Python 3.10
10+
y = false;
11+
return
12+
end
13+
514
try
615
pe = pyenv();
716
catch e

0 commit comments

Comments
 (0)