mirror of
https://github.com/wassname/ray.git
synced 2026-07-25 13:30:52 +08:00
9 lines
230 B
Python
9 lines
230 B
Python
import os, sys, ctypes
|
|
|
|
MACOSX = (sys.platform in ['darwin'])
|
|
|
|
_orchlib_handle = ctypes.CDLL(
|
|
os.path.join(os.path.dirname(os.path.abspath(__file__)), 'liborchlib.dylib' if MACOSX else 'liborchlib.so'),
|
|
ctypes.RTLD_GLOBAL
|
|
)
|