This repository has been archived by the owner on Dec 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUGFIX: Extending PYTHONPATH to fix local imports (#863)
* BUGFIX: Adding PYTHONPATH to fix local imports TODO: necessary for 2.7? How do we test that this is ok with respect to the mount point? * Revert "BUGFIX: Adding PYTHONPATH to fix local imports" This reverts commit 6da1fba. * fix: Extending PYTHONPATH to contain user files * fixup -- wrong usage of string.Join * Extending deps example/test to import foo from a local file * fixup * Deploy zip instead of deploying single python file * fixup path * fixup * Fix handler name in test setup * Changing command so it zips w/o folder
- Loading branch information
1 parent
f83503c
commit 8beda89
Showing
5 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
from bs4 import BeautifulSoup | ||
import urllib2 | ||
|
||
def foo(event, context): | ||
page = urllib2.urlopen("https://www.google.com/").read() | ||
soup = BeautifulSoup(page, 'html.parser') | ||
return soup.title.string | ||
from hellowithdepshelper import foo |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from bs4 import BeautifulSoup | ||
import urllib2 | ||
|
||
def foo(event, context): | ||
page = urllib2.urlopen("https://www.google.com/").read() | ||
soup = BeautifulSoup(page, 'html.parser') | ||
return soup.title.string |
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
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