In one of my Python packages the __init__.py
file contains the statement
from . import XXXX
What does the "." mean here? I got this technique by looking at another package, but I don't understand what it means.
Thanks!
python
In one of my Python packages the __init__.py
file contains the statement
from . import XXXX
What does the "." mean here? I got this technique by looking at another package, but I don't understand what it means.
Thanks!
Best Answer
Its a relative import. From: http://docs.python.org/py3k/reference/simple_stmts.html#the-import-statement