We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cf58a9 commit 892008fCopy full SHA for 892008f
1 file changed
+stdlib/has_python.m
@@ -1,5 +1,5 @@
1
%% HAS_PYTHON checks if Python is available in the current environment.
2
-% By default, Matlab >= R2022a will check for Python availability.
+% By default, does not check for Python availability.
3
% On some systems, Python may be broken in ways not detected by this function.
4
% The check can be per-session persistently disabled by `stdlib.has_python(false)`.
5
% The check can be per-session persistently enabled by `stdlib.has_python(true)`.
@@ -8,8 +8,9 @@
8
9
function y = has_python(enable_check)
10
arguments
11
- enable_check (1,1) logical = ~stdlib.matlabOlderThan('R2022a');
+ enable_check (1,1) logical = false
12
end
13
+% ~stdlib.matlabOlderThan('R2022a')
14
15
persistent py_enable
16
@@ -35,5 +36,3 @@
35
36
37
py_enable = y;
38
-
39
-%!assert(~stdlib.has_python())
0 commit comments