Replies: 1 comment
-
works if sys.path.append is don befoere imports |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From my main flask app.py I call a function in a file foo.py inside a git submodule. Starting flask fails sind it does not understand the imports there. I tried this workaround adding the git submodule folder to sys.path but didn't succeed.
├── app.py
├── git_submodule/
│ ├── foo.py
│ ├── some_module/
What is the correct way to make the imports in git submodule accessable to flask?
Beta Was this translation helpful? Give feedback.
All reactions