Skip to content

Commit 8f96385

Browse files
committed
py_device workaround
1 parent 5f490d0 commit 8f96385

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

+stdlib/device.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
i = [];
99

1010
if stdlib.has_python()
11-
i = uint64(int64(py.os.stat(p).st_dev)); % int64 first is for Matlab <= R2022a
11+
i = py_device(p);
1212
elseif ispc() && stdlib.has_dotnet()
1313
i = device_dotnet(p);
1414
elseif stdlib.isoctave()

+stdlib/private/py_device.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function i = py_device(p)
2+
3+
i = uint64(int64(py.os.stat(p).st_dev));
4+
% int64 first is for Matlab <= R2022a
5+
6+
end

0 commit comments

Comments
 (0)