Skip to content

Commit

Permalink
Fix issues introduced by #358/#359
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanBenson001 authored and lorengordon committed Oct 21, 2022
1 parent adf6ea7 commit 7b3aacd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def pip_requirements_step(path, prefix=None, required=False, tmp_dir=None):
raise RuntimeError(
'File not found: {}'.format(requirements))
else:
if not shutil.which(runtime):
if not query.docker and not shutil.which(runtime):
raise RuntimeError(
"Python interpreter version equal "
"to defined lambda runtime ({}) should be "
Expand All @@ -675,7 +675,7 @@ def npm_requirements_step(path, prefix=None, required=False, tmp_dir=None):
raise RuntimeError(
'File not found: {}'.format(requirements))
else:
if not shutil.which(runtime):
if not query.docker and not shutil.which(runtime):
raise RuntimeError(
"Nodejs interpreter version equal "
"to defined lambda runtime ({}) should be "
Expand Down

0 comments on commit 7b3aacd

Please sign in to comment.