Skip to content

Commit 7025457

Browse files
authored
fix: add cwd to sys.path for functions yaml (#12)
1 parent 59d68cf commit 7025457

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/firebase_functions/private/serving.py

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import enum
2121
import yaml
2222
import importlib
23+
import sys
2324
from os import kill, getpid
2425
from signal import SIGTERM
2526

@@ -32,6 +33,7 @@
3233

3334

3435
def get_functions():
36+
sys.path.insert(0, os.getcwd())
3537
spec = importlib.util.spec_from_file_location("main", "main.py")
3638
if spec is not None and spec.loader is not None:
3739
module = importlib.util.module_from_spec(spec)

0 commit comments

Comments
 (0)