Created
February 7, 2017 18:17
-
-
Save svrist/f77760996669475d922d57cc9e77c390 to your computer and use it in GitHub Desktop.
Mangle sys.path to include lambda zipped vendored python dependencies
This file contains hidden or 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
import os | |
import sys | |
if 'LAMBDA_TASK_ROOT' in os.environ: | |
here = os.path.dirname(__file__) | |
vendored = os.path.join(here, 'vendored') | |
if os.path.isdir(vendored): | |
sys.path.append(vendored) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment