Files
giovannibajo c7536735a2 Ticket #179: basic fixing for darwin64
git-svn-id: http://svn.pyinstaller.org/trunk@858 8dd32b29-ccff-0310-8a9a-9233e24343b1
2010-08-27 18:19:49 +00:00

15 lines
359 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[:6] == "darwin":
tct = CDLL("testctypes.dylib")
elif sys.platform == "win32":
tct = CDLL("testctypes.dll")
else:
raise NotImplementedError
return tct.dummy(arg)