I have written a module (a file my_mod.py file residing in the folder my_module). Currently, I am working in the file cool_script.py t
my_mod.py
my_module
cool_script.py
Always mark as source root the directory ABOVE the import!
So if the structure is
parent_folder/src/module.py
you must put something like:
from src.module import function_inside_module
and have parent_folder marked as "source folder" in PyCharm
parent_folder