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 d7b67f5 commit 0730963Copy full SHA for 0730963
src/cpython/context.jl
@@ -26,9 +26,7 @@ function init_context()
26
27
if CTX.is_embedded
28
# In this case, getting a handle to libpython is easy
29
- if CTX.lib_ptr == C_NULL
30
- CTX.lib_ptr = Ptr{Cvoid}(parse(UInt, ENV["JULIA_PYTHONCALL_LIBPTR"]))
31
- end
+ CTX.lib_ptr = Ptr{Cvoid}(parse(UInt, ENV["JULIA_PYTHONCALL_LIBPTR"]))
32
init_pointers()
33
# Check Python is initialized
34
Py_IsInitialized() == 0 && error("Python is not already initialized.")
0 commit comments