Please don\'t mark as duplicate, other similar questions did not solve my issue.
This is my setup
/main.py
/actions/ListitAction.py
/actions/ViewAction
If your file is in the root directory of the project then you can directly write the file name and import.
For example, if filename is Parent1.py
and class name is Parent
, then you would write
from Parent1 import Parent
However, if your file Parent1.py
is under any folder for example:
DemoFolder -> Parent1.py- > Parent
(Folder). (File). (Class name)
Then you would have to write:
from Test.Parent1 import Parent