Issue 8398: Modules with a dot in the filename don't load (original) (raw)
On my windows Xp system running Python 2.6 (from the (x,y) package) I tried to load a module named "GetMy.com_MOD.py". I kept receiving the error Traceback (most recent call last): File "D:\Docs\Futures-Strategy\StCHF\Test\GetMy.com_2.py", line 6, in import GetMy.com_MOD ImportError: No module named GetMy.com_MOD
Until I removed the dot renaming it to GetMycom_MOD.py, which works very nicely. Maybe the search should be smart enough to look for the last word after a dot to determine if the module exists or not?
Many thanks guys, Python rocks. marco