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.
Please define what you mean by path (and how you hope to make use of
this information).
Generally a module has a path (i.e
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
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.
Thanks,
Florian
--
http://mail.python.org/mailman/listinfo/python-list