Author amcnabb
Recipients
Date 2007-04-26.19:18:44
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The doc string for find_module doesn't make it clear that you can do:

stats_path = imp.find_module('scipy/stats')

It makes it sound like you would have to do:

scipy_path = imp.find_module('scipy')[1]
stats_path = imp.find_module('scipy', stats_path)[1]

However, the shorter snippet seems to work just fine.
History
Date User Action Args
2007-08-23 14:53:28adminlinkissue1708326 messages
2007-08-23 14:53:28admincreate