else
This commit is contained in:
parent
4198b5fb3e
commit
46d66a15f4
1 changed files with 14 additions and 0 deletions
14
Toolbox/forline.py
Normal file
14
Toolbox/forline.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
from voussoirkit import clipext
|
||||
|
||||
text = sys.argv[1]
|
||||
command = sys.argv[2:]
|
||||
command = ['"%s"' % x if (' ' in x or x == '%x') else x for x in command]
|
||||
command = ' '.join(command)
|
||||
text = clipext.resolve(text)
|
||||
|
||||
for line in text.splitlines():
|
||||
thiscomm = command.replace('%x', line)
|
||||
os.system(thiscomm)
|
Loading…
Reference in a new issue