Skip to content

Commit 1f8039f

Browse files
author
Aryik
committed
Insert zipped packages at beginning of path serverless#367
1 parent 2e81175 commit 1f8039f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unzip_requirements.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
pkgdir = '/tmp/sls-py-req'
88

9-
sys.path.append(pkgdir)
9+
# We want our path to look like [working_dir, serverless_requirements, ...]
10+
sys.path.insert(1, pkgdir)
1011

1112
if not os.path.exists(pkgdir):
1213
tempdir = '/tmp/_temp-sls-py-req'

0 commit comments

Comments
 (0)