Commit 09605706 by Brian Coca

relly fix it this time

parent 12a800c0
...@@ -426,7 +426,7 @@ class CLI(object): ...@@ -426,7 +426,7 @@ class CLI(object):
def pager_pipe(text, cmd): def pager_pipe(text, cmd):
''' pipe text through a pager ''' ''' pipe text through a pager '''
if 'LESS' not in os.environ: if 'LESS' not in os.environ:
os.environ['LESS'] = self.LESS_OPTS os.environ['LESS'] = CLI.LESS_OPTS
try: try:
cmd = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=sys.stdout) cmd = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=sys.stdout)
cmd.communicate(input=text) cmd.communicate(input=text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment