Skip to content

Commit

Permalink
don't use PyDLL if pypy - Thanks mike@tytolidar.com
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Jan 16, 2015
1 parent d9bbdae commit 2fec87a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/liblas/core.py
Expand Up @@ -48,7 +48,8 @@
import ctypes
from ctypes.util import find_library

from ctypes import PyDLL
if not 'pypy' in sys.executable:
from ctypes import PyDLL


class LASException(Exception):
Expand Down Expand Up @@ -108,7 +109,7 @@ def check_value_free(result, func, cargs):
raise LASException(msg)

retval = ctypes.string_at(result)[:]

return retval


Expand Down Expand Up @@ -798,7 +799,7 @@ def get_version():
las.LASHeader_SetCompressed.restype = ctypes.c_int

las.LASSchema_Create.argtypes = [ctypes.c_uint32]

las.LASSchema_Create.errcheck = check_void
las.LASSchema_Create.restype = ctypes.c_void_p

Expand Down

0 comments on commit 2fec87a

Please sign in to comment.