This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/python/swig/yap4py/__init__.py

26 lines
629 B
Python
Raw Normal View History

2017-05-19 10:03:49 +01:00
import imp
import os
import ctypes
import glob
import os.path
2017-09-06 01:09:46 +01:00
import platform
2017-05-19 10:03:49 +01:00
import sys
2017-11-08 09:29:01 +00:00
# global yap_lib_path
#yap_lib_path = os.path.dirname(__file__)
2017-05-19 10:03:49 +01:00
2017-11-09 12:14:41 +00:00
# if platform.system() == 'Windows':
# def load( dll ):
# dll = glob.glob(os.path.join(yap_lib_path,dll))[0]
# dll = os.path.abspath(dll)
# ctypes.WinDLL(dll)
# else:
# def load( l0 ):
# for i in ["@libdir@",""]:
# dll = os.path.concat(i,l0)
# dll = glob.glob(os.path.join(yap_lib_path,dll))[0]
# dll = os.path.abspath(dll)
# ctypes.CDLL(dll)
# # load('libYap*')
# # load('libPy4YAP*')