thanks Paul,

your solution works very well.

cheers,
Stef


Paul Hankin wrote:
On Jul 23, 9:58 am, Stef Mientki <[EMAIL PROTECTED]> wrote:
....
You could use version(<module>) instead of module.version(), and just
declare 'version' in one place. Presumably you already have a module
for getting the metadata out of one of your modules; perhaps it could
go in there?

def version(module):
    return getattr(module, 'Version_Text')[0][0]

--
Paul Hankin

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to