Skip to content

Instantly share code, notes, and snippets.

@uorat
Created August 31, 2017 05:29
Show Gist options
  • Save uorat/53dfd4d3e451750de191c07f372d8d03 to your computer and use it in GitHub Desktop.
Save uorat/53dfd4d3e451750de191c07f372d8d03 to your computer and use it in GitHub Desktop.
hello-apex/functions/python-sample/main.py
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