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 598252b commit 75bba75Copy full SHA for 75bba75
src/startup.jl
@@ -54,7 +54,8 @@ else
54
(Ptr{Cvoid}, Ptr{UInt16}, UInt32),
55
libpy_handle, pathbuf, length(pathbuf))
56
@assert ret != 0
57
- libname = String(Base.transcode(UInt8, pathbuf[1:findfirst(pathbuf, 0)-1]))
+ pathlen = something(findfirst(iszero, pathbuf)) - 1
58
+ libname = String(Base.transcode(UInt8, pathbuf[1:pathlen]))
59
if (Libdl.dlopen_e(libname) != C_NULL)
60
const libpython = libname
61
else
0 commit comments