Rene Pijlman <reply.in.the.newsgroup at my.address.is.invalid> writes: > > spam = __import__('spam.eggs') > > eggs = spam.eggs > > Yes, and a bit more elegant (pythonic?). Thanks. Another way: exec 'import spam'