-
I have a separate file from my app.py that I want to import and use functions from. But I have not yet found how to set up package.json to achieve this. I have tried
where counter.py is my external file, but I still get an error of ModuleNotFoundError: No module named 'counter'. What is the solution? |
Beta Was this translation helpful? Give feedback.
Answered by
pvanallen
May 23, 2025
Replies: 1 comment
-
Oh sorry! Nevermind. "files": ["app.py","counter.py"], did actually work. I was missing the counter.py file from the directory. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pvanallen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh sorry! Nevermind.
"files": ["app.py","counter.py"],
did actually work. I was missing the counter.py file from the directory.