Reputation: 4028
I am using facepy for GAE with python
I got a an error and when I track the error, I found
from . import certs
in utils.py file
What does the dot (.) mean?
certs.py is just in the same folder with utils.py
Upvotes: 1
Views: 222
Reputation: 37249
It is a relative import, which means basically what you say in your last sentence - it is going to look in the current folder relative to the current module to find the module certs
.
Upvotes: 2
Reputation: 334
It means import from the same folder. See if there's an __init__.py file in that folder, if not that might be why it's unhappy.
Upvotes: 0