Python “from . import x” — What’s the Purpose of the Dot?
You may have seen an import statement from . import your_module with the dot after the from keyword: What Does the Dot Mean? In Python, modules are defined in packages. If you want to import a certain module within a package that may be hierarchically structured, you need to specify the path of your module. … Read more