File: compiled.py

package info (click to toggle)
python-bumps 0.7.11-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,264 kB
  • sloc: python: 22,226; ansic: 4,973; cpp: 4,849; xml: 493; makefile: 163; perl: 108; sh: 101
file content (6 lines) | stat: -rw-r--r-- 253 bytes parent folder | download
1
2
3
4
5
6
from os.path import join as joinpath, realpath, dirname, exists
from ctypes import CDLL, c_int, c_double, c_void_p, c_char_p, byref

_dll_path = joinpath(realpath(dirname(__file__)), '_compiled.so')
dll = CDLL(_dll_path) if exists(_dll_path) else None