else/Toolbox/clipboard.py
Ethan Dalool b0187f3269 else
2016-11-17 22:24:52 -08:00

12 lines
266 B
Python

import pyperclip
import sys
if len(sys.argv) > 1:
sys.path.append('C:\\git\\else\\Clipext'); import clipext
stuff = clipext.resolve(sys.argv[1])
pyperclip.copy(stuff)
else:
text = pyperclip.paste()
text = text.replace('\r', '')
print(text)