Open jarv opened 7 years ago
I'm sharing some code between several lambda functions. Instead of creating a module and installing it in each _src directory I am finding it easier to symlink to the common code like so:
_src
func1/_src/common -> ../../common func2/_src/common -> ../../common
In order to make this work for the zipfile creation I need to change os.walk(lambda_dir) to os.walk(lambda_dir, followlinks=True) in function.py.
os.walk(lambda_dir)
os.walk(lambda_dir, followlinks=True)
function.py
Would you be open to a PR to make this configurable or is there a better way to share code between lambda functions?
Sure go for it.
I'm sharing some code between several lambda functions. Instead of creating a module and installing it in each
_src
directory I am finding it easier to symlink to the common code like so:In order to make this work for the zipfile creation I need to change
os.walk(lambda_dir)
toos.walk(lambda_dir, followlinks=True)
infunction.py
.Would you be open to a PR to make this configurable or is there a better way to share code between lambda functions?