'Modules on pyCharm don't run, only main does
I have a problem with my pyCharm community. When I create a project pyCharm by default creates a module named main. The problem is, when I open another module and try to click on run icon, this module won't run! only the main runs even if it's not opened. I tried to check run configuration but couldn't solve the problem.
Solution 1:[1]
On the Left panel, click on python, then click on add configuration
FInally browse the file you would like to run and apply Go back to your Run button and run. Remember to always select the file u want to run from the dropdown before running.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Dharman |
