Skip to content

Commit e02c3dc

Browse files
committed
subprocess fix for nficano#128
1 parent 6558473 commit e02c3dc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,5 @@ target/
6464
# vim swap files
6565
.*.sw?
6666
aws_lambda/.DS_Store
67-
.DS_Store
67+
.DS_Store
68+
.vscode/

aws_lambda/aws_lambda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def pip_install_to_target(path, requirements=None, local_package=None):
436436
packages = []
437437
if not requirements:
438438
print('Gathering pip packages')
439-
pkgStr = subprocess.check_call([sys.executable, '-m', 'pip', 'freeze'])
439+
pkgStr = subprocess.check_output([sys.executable, '-m', 'pip', 'freeze'])
440440
packages.extend(pkgStr.decode('utf-8').splitlines())
441441
else:
442442
if os.path.exists(requirements):

0 commit comments

Comments
 (0)