Following is the file structure all are in same folder:
__init__.py
gnewsclient.py
test.py
1)
__init__.py:
from .gnewsclient import gnewsclient
2) gnewsclient.py
class gnewsclient:
//Some methods
Now I want to import methods from gnewsclient class of gnewsclient.py
file inside test.py
I tried from gnewsclient import *
but it says parent module not loaded '' cannot perform relative import.