ion icon indicating copy to clipboard operation
ion copied to clipboard

Allow a path setting for Python Functions

Open subssn21 opened this issue 5 months ago • 5 comments

          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

subssn21 avatar Sep 24 '24 17:09 subssn21