<s> """<STR_LIT>""" <EOL> from os . path import dirname , join , abspath <EOL> import sys <EOL> sys . path . insert ( <NUM_LIT:0> , join ( dirname ( dirname ( abspath ( __file__ ) ) ) , "<STR_LIT>" ) ) <EOL> import cmdln <EOL> def mkmanpage ( name ) : <EOL> """<STR_LIT>""" <EOL> mod_name , class_name = name . rsplit ( '<STR_LIT:.>' , <NUM_LIT:1> ) <EOL> mod = __import__ ( mod_name ) <EOL> inst = getattr ( mod , class_name ) ( ) <EOL> sections = cmdln . man_sections_from_cmdln ( inst ) <EOL> sys . stdout . write ( '<STR_LIT>' . join ( sections ) ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> sys . exit ( mkmanpage ( sys . argv [ <NUM_LIT:1> ] ) ) </s>
