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 b861036 commit 5082ef6Copy full SHA for 5082ef6
src/C/context.jl
@@ -31,6 +31,22 @@ end
31
32
function init_context()
33
34
+ # reset the context
35
+ CTX.is_embedded = false
36
+ CTX.is_initialized = false
37
+ CTX.is_preinitialized = false
38
+ CTX.lib_ptr = C_NULL
39
+ CTX.exe_path = missing
40
+ CTX.lib_path = missing
41
+ CTX.dlopen_flags = RTLD_LAZY | RTLD_DEEPBIND | RTLD_GLOBAL
42
+ CTX.pyprogname = missing
43
+ CTX.pyprogname_w = missing
44
+ CTX.pyhome = missing
45
+ CTX.pyhome_w = missing
46
+ CTX.which = :unknown
47
+ CTX.version = missing
48
+
49
+ # check if Julia is embedded into pyjuliacall
50
CTX.is_embedded = hasproperty(Base.Main, :__PythonCall_libptr)
51
52
if CTX.is_embedded
0 commit comments