-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathC.jl
More file actions
34 lines (26 loc) · 732 Bytes
/
C.jl
File metadata and controls
34 lines (26 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"""
module PythonCall.C
This module provides a direct interface to the Python C API.
"""
module C
using ..Utils
using Base: @kwdef
using UnsafePointers: UnsafePtr
using Libdl:
dlpath, dlopen, dlopen_e, dlclose, dlsym, dlsym_e, RTLD_LAZY, RTLD_DEEPBIND, RTLD_GLOBAL
using Preferences: @load_preference
# do not load CondaPkg if the exe preference is set to something else
if @load_preference("exe", "") in ("", "@CondaPkg")
using CondaPkg: CondaPkg
end
import ..PythonCall:
python_executable_path, python_library_path, python_library_handle, python_version
include("consts.jl")
include("pointers.jl")
include("extras.jl")
include("context.jl")
include("api.jl")
function __init__()
init_context()
end
end