Alan Gauld wrote:
"Tim Johnson" <[email protected]> wrote
Just curious, but could the imp module help you? imp.find_module
I'll be darned. I never even heard of that module, but I just
did an import and looked at the docs. I *will* give that a try.
I think its new in Python v3...
Nah, it's been around forever:
[st...@sylar ~]$ python1.5
Python 1.5.2 (#1, Apr 1 2009, 22:55:54) [GCC 4.1.2 20070925 (Red Hat
4.1.2-27)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import imp
>>> imp.find_module('math')
(None, 'math', ('', '', 6))
--
Steven
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor