Last Updated: February 25, 2016
·
329
· ronelliott

Use Relative Imports

Use relative imports in python to ease code module maintenance.

Here is a normal import:

from my.awesome.package import foo

And the relative equivalent from the package my:

from .awesome.package import foo