relly fix it this time

pull/4420/head
Brian Coca 2015-05-12 12:26:20 -04:00
parent 12a800c0e7
commit 09605706d9
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ class CLI(object):
def pager_pipe(text, cmd):
''' pipe text through a pager '''
if 'LESS' not in os.environ:
os.environ['LESS'] = self.LESS_OPTS
os.environ['LESS'] = CLI.LESS_OPTS
try:
cmd = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=sys.stdout)
cmd.communicate(input=text)