From ff2803e65228ef863bcd977184fe6782b29621af Mon Sep 17 00:00:00 2001 From: Matthew Hanson Date: Thu, 26 Jul 2018 15:08:51 -0400 Subject: [PATCH] update geolambda-seed handler --- .../lambda/{lambda_handler.py => lambda_function.py} | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) rename geolambda-seed/lambda/{lambda_handler.py => lambda_function.py} (69%) diff --git a/geolambda-seed/lambda/lambda_handler.py b/geolambda-seed/lambda/lambda_function.py similarity index 69% rename from geolambda-seed/lambda/lambda_handler.py rename to geolambda-seed/lambda/lambda_function.py index 1bb4d00..a8368d9 100644 --- a/geolambda-seed/lambda/lambda_handler.py +++ b/geolambda-seed/lambda/lambda_function.py @@ -2,12 +2,6 @@ import sys import logging -# add path to included packages -pyver = '%s.%s' % (sys.version_info[0], sys.version_info[1]) -path = os.path.dirname(os.path.realpath(__file__)) -libpath = os.path.join(path, 'lib/python%s/site-packages' % pyver) -sys.path.insert(0, libpath) - # set up logger logger = logging.getLogger(__file__) logger.setLevel(logging.DEBUG) @@ -18,7 +12,7 @@ from osgeo import gdal -def handler(event, context): +def lambda_handler(event, context): """ Lambda handler """ logger.debug(event)