Skip to content

Commit

Permalink
Follow symlinks in chalicelib (resolves #696)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebrennan committed Jan 24, 2022
1 parent 61f4345 commit f289c17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chalice/deploy/packager.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ def _iter_chalice_lib_if_needed(self, project_dir):
# type: (str) -> Iterator[Tuple[str, str]]
libdir = self._osutils.joinpath(project_dir, self._CHALICE_LIB_DIR)
if self._osutils.directory_exists(libdir):
for rootdir, _, filenames in self._osutils.walk(libdir):
for rootdir, _, filenames in self._osutils.walk(libdir,
followlinks=True):
for filename in filenames:
fullpath = self._osutils.joinpath(rootdir, filename)
zip_path = self._osutils.joinpath(
Expand Down

0 comments on commit f289c17

Please sign in to comment.