def get_pager_cmd(pager_cmd=None):
if os.name == '<STR_LIT>':<EOL><INDENT>default_pager_cmd = '<STR_LIT>'  <EOL><DEDENT>elif os.name in ['<STR_LIT>','<STR_LIT>']:<EOL><INDENT>default_pager_cmd = '<STR_LIT:type>'<EOL><DEDENT>if pager_cmd is None:<EOL><INDENT>try:<EOL><INDENT>pager_cmd = os.environ['<STR_LIT>']<EOL><DEDENT>except:<EOL><INDENT>pager_cmd = default_pager_cmd<EOL><DEDENT><DEDENT>return pager_cmd<EOL>
Return a pager command.

    Makes some attempts at finding an OS-correct one.