John
John

Reputation: 4028

". import certs"

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

Answers (2)

RocketDonkey
RocketDonkey

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

timeartist
timeartist

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

Related Questions