[issue35375] name shadowing while a module tries to import another
pmpp
report at bugs.python.org
Sun Dec 2 05:35:10 EST 2018
pmpp <pmpp.pub at gmail.com> added the comment:
hi you are obsverving that because current working directory is set *first* in sys.path as a commodity
you can avoid that with
import sys,os
sys.path.remove( os.getcwd() )
at the start of your program.
otherwise usually it is wise to put user module in a package and choose its name with care.
----------
nosy: +pmpp
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35375>
_______________________________________
More information about the Python-bugs-list
mailing list