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 a677739 commit 24c3726Copy full SHA for 24c3726
1 file changed
+stdlib/has_python.m
@@ -3,6 +3,16 @@
3
% https://www.mathworks.com/support/requirements/python-compatibility.html
4
5
function y = has_python(enable_check)
6
+% arguments
7
+% enable_check (1,1) logical = ~stdlib.matlabOlderThan('R2022a');
8
+% end
9
+
10
+persistent py_enable
11
12
+if ~isempty(py_enable) && nargin == 0
13
+ y = py_enable;
14
+ return
15
+end
16
17
y = false;
18
@@ -14,6 +24,8 @@
24
y = ~isempty(stdlib.python_version());
25
end
26
27
+py_enable = y;
28
29
30
19
31
%!assert(~stdlib.has_python())
0 commit comments