FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: add cwd to sys.path for functions yaml by jamesdaniels · Pull Request #12 · firebase/firebase-functions-python · GitHub

fix: add cwd to sys.path for functions yaml - #12

Merged
Salakar merged 1 commit into
firebase:mainfrom
jamesdaniels:patch-1
Jun 5, 2023
Merged

fix: add cwd to sys.path for functions yaml#12
Salakar merged 1 commit into
firebase:mainfrom
jamesdaniels:patch-1

Conversation

jamesdaniels commented Dec 7, 2022
edited by Salakar
Loading

Copy link
Copy Markdown
Contributor

Allow import of relative files in main.py by adding the cwd to the sys.path. Otherwise getting /__/functions.yaml will raise an exception that imports could not be found.

There's probably a better way to do this but my python foo is a little rusty.

Closes #92

Allow import of relative files in `main.py` by adding the cwd to the sys.path
Salakar changed the title Add cwd to sys.path fix: add cwd to sys.path for functions yaml Jun 5, 2023
Salakar merged commit 7025457 into firebase:main Jun 5, 2023

Copy link
Copy Markdown

Any plan to release the fix? Am looking forward to it.

cowst commented Oct 26, 2023

Copy link
Copy Markdown

when will this be released?

s3i7h commented Jul 4, 2024

Copy link
Copy Markdown

For anyone wondering about when it's released, this change was included in the 0.1.0 → 0.1.1 release. c.f.

https://github.com/firebase/firebase-functions-python/compare/0.1.0..0.1.1#diff-611b247b57681d9d9ee07c513e69142e351232e407dda23ddbad53c44a64f5f5

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No Module Named when Referencing local packages (folders)

5 participants


Back | FazBrowse Home | New Git URL