[Liblas-commits] r1001 - branches/1.0/python/liblas
liblas-commits at liblas.org
liblas-commits at liblas.org
Thu Feb 5 22:03:14 EST 2009
Author: hobu
Date: Thu Feb 5 22:03:13 2009
New Revision: 1001
URL: http://liblas.org/changeset/1001
Log:
backport r1000 for #89
Modified:
branches/1.0/python/liblas/__init__.py
branches/1.0/python/liblas/core.py
Modified: branches/1.0/python/liblas/__init__.py
==============================================================================
--- branches/1.0/python/liblas/__init__.py (original)
+++ branches/1.0/python/liblas/__init__.py Thu Feb 5 22:03:13 2009
@@ -1,4 +1,5 @@
from core import *
+version = core.get_version()
import file
import point
import header
Modified: branches/1.0/python/liblas/core.py
==============================================================================
--- branches/1.0/python/liblas/core.py (original)
+++ branches/1.0/python/liblas/core.py Thu Feb 5 22:03:13 2009
@@ -98,7 +98,7 @@
def free_returned_char_p(result, func, cargs):
size = ctypes.c_int()
- retvalue = ctypes.string_at(result, size.value)[:]
+ retvalue = ctypes.string_at(result)
free(result)
return retvalue
@@ -144,12 +144,12 @@
def get_version():
return las.LAS_GetVersion()
-
+
+version = get_version()
las.LAS_GetVersion.restype = ctypes.POINTER(ctypes.c_char)
las.LAS_GetVersion.errcheck = free_returned_char_p
-version = get_version()
las.LAS_GetVersion.restype = ctypes.c_char_p
las.LASError_GetLastErrorNum.restype = ctypes.c_int
More information about the Liblas-commits
mailing list