I have a local directory named \"calendar\" with an \"__init__.py\" file.
I want \"import calendar\" to import the standard library module calendar, and not the module d
You could modify sys.path, import the package, then restore sys.path to its original value.
sys.path
import sys original_path = sys.path sys.path = original_path[1:] import calendar sys.path = original_path