Reputation: 33
I am trying to import the python file Project/MasterCard/src/Gnip.py
from the views.py
import sys
import os
import ConfigParser
from MasterCard.src
import Gnip # -- > Here i want to import the Gnip.py
Exception which occurred:
Exception Value: No module named src
Upvotes: 1
Views: 71
Reputation: 20339
Try this
create a __init__.py
inside as MasterCard/src/__init__.py
.Then import
from MasterCard.src import Gnip
Upvotes: 2