Skip to content

Commit 0232b04

Browse files
committed
add in commented out example code for testing out libgdal binary
1 parent dd016e0 commit 0232b04

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

python/lambda/lambda_function.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ def lambda_handler(event, context=None):
2020
""" Lambda handler """
2121
logger.debug(event)
2222

23-
# this try block is for testing and info only, it can be safely removed
24-
# it prints out info on the linked libraries found in libgdal
25-
try:
26-
output = subprocess.check_output('ldd /opt/lib/libgdal.so'.split(' '))
27-
logger.info(output.decode())
28-
except Exception as e:
29-
pass
23+
# this try block is for testing and info only,
24+
# it prints out info on the the libgdal binary and paths to linked libraries
25+
#try:
26+
# output = subprocess.check_output('readelf -d /opt/lib/libgdal.so'.split(' '))
27+
# logger.info(output.decode())
28+
# output = subprocess.check_output('ldd /opt/lib/libgdal.so'.split(' '))
29+
# logger.info(output.decode())
30+
#except Exception as e:
31+
# pass
3032

3133
# process event payload and do something like this
3234
fname = event.get('filename', test_filename)

0 commit comments

Comments
 (0)