Skip to content

Commit

Permalink
Move path append to main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
abarciauskas-bgse committed Nov 6, 2023
1 parent 8185b09 commit 7d61aa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions infrastructure/aws/lambda/handler.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""AWS Lambda handler."""

import logging
import sys

from mangum import Mangum

Expand All @@ -10,5 +9,4 @@
logging.getLogger("mangum.lifespan").setLevel(logging.ERROR)
logging.getLogger("mangum.http").setLevel(logging.ERROR)

sys.path.append("/mnt/efs/libraries")
handler = Mangum(app, lifespan="off")
2 changes: 2 additions & 0 deletions titiler/xarray/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import logging
import os
import shutil
import sys
sys.path.append("/mnt/efs/libraries")

import rioxarray
import zarr
Expand Down

0 comments on commit 7d61aa7

Please sign in to comment.