[Python-ideas] Disallow importing the same module under multiple names
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Mar 20 19:51:50 EDT 2018
Chris Billington wrote:
> I wonder how mercurial gets
> around the fact that its own imports might be shadowed by whatever's in
> the current working directory.
The cwd is only added to sys.path in the interactive interpreter,
not when you run "python something.py". So it's not usually a
problem for applications implemented in Python.
--
Greg
More information about the Python-ideas
mailing list