Skip to content

Commit 892008f

Browse files
committed
has_python default no check
Python interface can crash Matlab. Setting to not enabled by default
1 parent 0cf58a9 commit 892008f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

+stdlib/has_python.m

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%% HAS_PYTHON checks if Python is available in the current environment.
2-
% By default, Matlab >= R2022a will check for Python availability.
2+
% By default, does not check for Python availability.
33
% On some systems, Python may be broken in ways not detected by this function.
44
% The check can be per-session persistently disabled by `stdlib.has_python(false)`.
55
% The check can be per-session persistently enabled by `stdlib.has_python(true)`.
@@ -8,8 +8,9 @@
88

99
function y = has_python(enable_check)
1010
arguments
11-
enable_check (1,1) logical = ~stdlib.matlabOlderThan('R2022a');
11+
enable_check (1,1) logical = false
1212
end
13+
% ~stdlib.matlabOlderThan('R2022a')
1314

1415
persistent py_enable
1516

@@ -35,5 +36,3 @@
3536

3637
py_enable = y;
3738
end
38-
39-
%!assert(~stdlib.has_python())

0 commit comments

Comments
 (0)