Files
pyinstaller/buildtests/test15a.py
T
giovannibajo f7f2f1d674 Fix ctypes support on Linux.
find_library() is not the correct function to resolve the full path,
at least not on Linux.


git-svn-id: http://svn.pyinstaller.org/trunk@632 8dd32b29-ccff-0310-8a9a-9233e24343b1
2009-03-01 12:13:57 +00:00

15 lines
355 B
Python

#!/usr/bin/env python
import sys
from ctypes import *
def dummy(arg):
if sys.platform == "linux2":
tct = CDLL("testctypes.so")
elif sys.platform == "darwin":
tct = CDLL("testctypes.dylib")
elif sys.platform == "win32":
tct = CDLL("testctypes.dll")
else:
raise NotImplementedError
return tct.dummy(arg)