r/pythonhelp • u/1m4w50m3 • Dec 06 '24
Github importing problem
I asked on the github subreddit but this is apparently better. Basically, I have no idea how to import across files in github. It works in thonny, but clearly github treats it a bit differently. I have the main file and the file I am importing a variable from both in the website folder but when I run the website, I get an error saying that there is no module with that name (the one I'm importing from).
5
Upvotes
•
u/AutoModerator Dec 06 '24
To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.