- #1
Eclair_de_XII
- 1,083
- 91
- TL;DR Summary
- I have this project in PyCharm that I have been trying to execute from the Python terminal. The problem is that the module I am using imports from other folders with import statements that act as though those modules reside in the root folder.
i.e.
I have many modules to import: [/folder/module1.py],...,[/folder/module105.py]
The blank __init__.py is assumed to be in /folder.
module: [/main.py] imports the former with the statement: [import module1],...,[import module105]
I sort of messed up while writing all my code, and now I regret it. Is there any way to fix all my import statements without manually going through every single one of the modules I created and appending the folder names to the start of each and every imported module name? I am unable to find any answers online, to my chagrin.