Is this possible ....

Stef Mientki stef.mientki at gmail.com
Wed Jul 23 06:35:54 EDT 2008


thanks Paul,

your solution works very well.

cheers,
Stef


Paul Hankin wrote:
> On Jul 23, 9:58 am, Stef Mientki <stef.mien... at gmail.com> 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
>   




More information about the Python-list mailing list