ion
ion copied to clipboard
Allow a path setting for Python Functions
Any way we can add a parameter to tell things to include code from other directories / set the python path differently, It looks like right now, it is all relative to the handler function and my v2 app (and I am sure others) have their library code in a different directory than their handlers.
As an example
- Project Root
-
- backend
-
-
- lib
-
-
-
-
- models
-
-
-
-
-
- utils
-
-
-
-
- services
-
-
-
-
- api
-
-
-
-
-
-
- handler1
-
-
-
-
-
-
-
- handler2
-
-
-
-
-
-
- dynamodbstream
-
-
-
-
-
-
- handler1
-
-
-
-
-
-
-
- handler2
-
-
-
-
- frontend
-
- sst.config.ts
Does that make sense?
Originally posted by @subssn21 in https://github.com/sst/ion/issues/366#issuecomment-2350027627