In my project, the file structure is as follows:
I have a statement in script2.py that says "import script1", and Pycharm says no module is found. How do I fix this?
To import as object :
from root.folder1.folder2 import script1
To import a function of your script:
from root.folder1.folder2.script1 import NameOfTheFunction