showing help(M) when running module M standalone

Chris c at cdot.de
Sat Jul 30 16:03:19 EDT 2005


hello,
thanks for all suggestions,

if __name__ == '__main__':
     __name__ = 'MODULENAME'
     help(__name__)

does actually work any even shows the modulename it should.

chris



More information about the Python-list mailing list