forked from JuliaPy/PythonCall.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathC.jl
More file actions
32 lines (24 loc) · 627 Bytes
/
C.jl
File metadata and controls
32 lines (24 loc) · 627 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
"""
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
if Utils.getpref_exe(; prefonly=true) == "@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