pythonpython-import

from . import XXXX


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.


Solution

  • It's a relative import.