mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
c7536735a2
git-svn-id: http://svn.pyinstaller.org/trunk@858 8dd32b29-ccff-0310-8a9a-9233e24343b1
15 lines
359 B
Python
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)
|