mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
f7f2f1d674
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
15 lines
355 B
Python
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)
|