Mercurial > python-cmd2
diff cmd2.py @ 24:f9196cf5ef51
gonna mess with tempfiles
author | catherine@localhost |
---|---|
date | Fri, 16 May 2008 17:36:28 -0400 |
parents | 37bff80ef816 |
children | 6948d1f9e4b4 |
line wrap: on
line diff
--- a/cmd2.py Fri May 16 17:17:26 2008 -0400 +++ b/cmd2.py Fri May 16 17:36:28 2008 -0400 @@ -147,7 +147,9 @@ command = 'xclip -o -sel clip' else: command = 'xclip -sel clip' - return subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE) + result = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE) + #TODO: need a better response to user who lacks xclip + return result def onecmd(self, line): """Interpret the argument as though it had been typed in response