New submission from Arfrever Frehtes Taifersar Arahesis <arfrever....@gmail.com>:
# python3.3 -c 'import imp; print(imp.find_module("."))' Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named '.' # mkdir /usr/lib64/python3.3/site-packages/something # touch /usr/lib64/python3.3/site-packages/something/__init__.py # echo something > /usr/lib64/python3.3/site-packages/something.pth # python3.3 -c 'import imp; print(imp.find_module("."))' (None, '/usr/lib64/python3.3/site-packages/something/.', ('', '', 5)) ---------- messages: 144519 nosy: Arfrever priority: normal severity: normal status: open title: Unexpected behavior of imp.find_module(".") with a package present in sys.path and also referenced in a .pth file versions: Python 2.7, Python 3.2, Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13043> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com