1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-07-15 03:23:47 +01:00

Fixes for Emacs

- Do not try to use a pager if it explicitly disabled with PAGER='' in
  the environment.
- If terminal size is identified as (0, 0), fall back to default (80,
  25).
This commit is contained in:
Sergei Trofimov
2015-06-01 10:05:23 +01:00
parent 777003ed51
commit f49287cf09
2 changed files with 5 additions and 6 deletions

@ -523,9 +523,9 @@ def load_class(classpath):
def get_pager():
"""Returns the name of the system pager program."""
pager = os.getenv('PAGER')
if not pager:
if pager is None:
pager = find_executable('less')
if not pager:
if pager is None:
pager = find_executable('more')
return pager