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

Peter Hansen peter at engcorp.com
Wed Jul 31 08:21:21 EDT 2002


Duncan Booth wrote:
> 
> "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.

I have to say if I worked in a place where renaming files became a
loaded political issue, I would be leaving in a hurry.  Like, the
next day!  That's insane.

-Peter



More information about the Python-list mailing list