Commits

Leonard Ritter committed abb03b4

OSX support

  • Participants
  • Parent commits 99d0d72

Comments (0)

Files changed (1)

 _ffi = FFI()
 _LIB = None
 
+IS_DARWIN = sys.platform == 'darwin'
 IS_WIN32 = sys.platform == 'win32'
 IS_LINUX = sys.platform == 'linux2'
 _THISDIR = os.path.abspath(os.path.dirname(__file__))  
         local_dl = os.path.join(_THISDIR, 'SDL2.dll')
     elif IS_LINUX:
         local_dl = os.path.join(_THISDIR, 'libSDL2.so')
+    elif IS_DARWIN:
+        local_dl = os.path.join(_THISDIR, 'libSDL2.dylib')
     else:
         local_dl = None
         
     if local_dl and os.path.isfile(local_dl):
+        print("using {0}".format(local_dl))
         libname = local_dl 
         
     #import time