Created
August 31, 2017 05:29
-
-
Save uorat/53dfd4d3e451750de191c07f372d8d03 to your computer and use it in GitHub Desktop.
hello-apex/functions/python-sample/main.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import sys | |
import os | |
import logging | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) | |
def handle(event, context): | |
logger.info("$ENV: " + str(os.environ)) | |
logger.info("__file__ : " + __file__) | |
logger.info("$PYTHONPATH: " + os.environ["PYTHONPATH"]) | |
logger.info("sys.path: " + str(sys.path)) | |
logger.info("list /var/task/: " + str(os.listdir('/var/task'))) | |
logger.info("list /var/runtime/: " + str(os.listdir('/var/runtime'))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment