diff options
Diffstat (limited to 'src/vhdl/python/libghdl/__init__.py')
| -rw-r--r-- | src/vhdl/python/libghdl/__init__.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vhdl/python/libghdl/__init__.py b/src/vhdl/python/libghdl/__init__.py new file mode 100644 index 000000000..d36f58d9f --- /dev/null +++ b/src/vhdl/python/libghdl/__init__.py @@ -0,0 +1,11 @@ +import ctypes +import sys + +dll_ext = {'linux': '.so', + 'linux2': '.so', + 'darwin': '.dylib', + 'win32': '.dll', + 'cygwin': '.dll'} + +libghdl = ctypes.CDLL("libghdl" + dll_ext.get(sys.platform, '.so')) +libghdl.libghdl_init() |
