How do you import a module with "." in its filename?

Duncan Booth duncan at NOSPAMrcp.co.uk
Wed Jul 31 07:19:53 EDT 2002


"Keith Dart" <kdart at kdart.com> wrote in 
news:xsP19.36095$Zw6.135530681 at newssvr21.news.prodigy.com:

> But.... why bother? Why not just rename the original modules to
> a_test.py, etc.? That's what I do.

Well, the OP said:
> For both practical and political reasons, renaming a.test.py to a_test.py
> is not an option.

I'm not entirely sure I believe there are practical reasons, but the 
politics may well be insurmountable.

-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?



More information about the Python-list mailing list