Get __doc__ from main module in imported module.

David davidism at gmail.com
Wed Feb 10 21:32:28 EST 2010


> > How can I access the top level module's doc string from toolkit?
>
> Like
>
>      import __main__
>      print_usage( __main__ )
>
> with suitable definition of 'usage'.
>
> Cheers & hth.,
>
> - Alf

Problem solved!
Thanks for the other tips too.



More information about the Python-list mailing list