In <[EMAIL PROTECTED]>, Florian Lindner wrote: > Hello, > how can I get the path of a class. I managed to do it with > > c.__module__ + "." + c.__name__ > > but I'm sure there is a better way.
How about using the `inspect` module::
In [33]: import inspect, zipfile
In [34]: inspect.getsourcefile(zipfile.ZipInfo)
Out[34]: '/usr/lib/python2.4/zipfile.py'
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list
