Modules can be imported directly using the package or module name. : import « Statement « Python Tutorial






# Items in submodules must be accessed explicitly including the full package name.

import os
print os.path.abspath(".")








3.12.import
3.12.1.To import only one function with a given name
3.12.2.Importing Something As Something Else
3.12.3.Modules can be imported directly using the package or module name.
3.12.4.namespace should be named something different.
3.12.5.import module vs. from module import