else/Toolbox/clipboard.py
Ethan Dalool 2e337c77c5 else
2016-12-01 22:37:07 -08:00

12 lines
240 B
Python

import pyperclip
import sys
if len(sys.argv) > 1:
from voussoirkit import clipext
stuff = clipext.resolve(sys.argv[1])
pyperclip.copy(stuff)
else:
text = pyperclip.paste()
text = text.replace('\r', '')
print(text)