Skip to content

Commit 18dff9d

Browse files
committed
+stdlib/python_version.m
python_version: pass out optional debug message
1 parent 24f6851 commit 18dff9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

+stdlib/private/pvt_python_version.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44

55
pe = pyenv();
66
vs = pe.Version;
7-
if stdlib.strempty(vs), return, end
7+
if ~strlength(vs), return, end
88

99
% this line may error like
1010
% "Python Error: TypeError: cannot create 'sys.version_info' instances"
1111
% if Python version incompatible or something got corrupted in loading Python library
12+
% try restarting Matlab
1213
vi = py.sys.version_info;
1314
v = [double(vi.major), double(vi.minor), double(vi.micro)];
1415

0 commit comments

Comments
 (0)