kappa icon indicating copy to clipboard operation
kappa copied to clipboard

Following symlinks

Open jarv opened this issue 9 years ago • 1 comments

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:

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.

Would you be open to a PR to make this configurable or is there a better way to share code between lambda functions?

jarv avatar Nov 16 '16 21:11 jarv

Sure go for it.

josegonzalez avatar Nov 17 '16 21:11 josegonzalez