diff options
| author | Catherine Devlin <catherine.devlin@gmail.com> | 2008-05-16 17:36:28 -0400 |
|---|---|---|
| committer | Catherine Devlin <catherine.devlin@gmail.com> | 2008-05-16 17:36:28 -0400 |
| commit | 77334a138f6c5f89a16853cc5a88e9f0859d03f2 (patch) | |
| tree | 0051b61aa03659e1f0fa83877ee4e5713bd45119 | |
| parent | f3256dce57178cb042b2dc0faac32901f252d013 (diff) | |
| download | cmd2-git-77334a138f6c5f89a16853cc5a88e9f0859d03f2.tar.gz | |
gonna mess with tempfiles
| -rwxr-xr-x | cmd2.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -147,7 +147,9 @@ class Cmd(cmd.Cmd): 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
|
