projects
/
rainbowstream.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
050c421
)
eval function
author
vunhat_minh
<vunhat_minh@dwango.co.jp>
Fri, 27 Jun 2014 07:45:04 +0000
(16:45 +0900)
committer
vunhat_minh
<vunhat_minh@dwango.co.jp>
Fri, 27 Jun 2014 07:45:04 +0000
(16:45 +0900)
rainbowstream/rainbow.py
patch
|
blob
|
blame
|
history
diff --git
a/rainbowstream/rainbow.py
b/rainbowstream/rainbow.py
index 77621a78c7dc09bb66c4a99ac6c323d1945acaba..d98d1e01cbec9d04535141d5f3e7962b557b78f8 100644
(file)
--- a/
rainbowstream/rainbow.py
+++ b/
rainbowstream/rainbow.py
@@
-1086,6
+1086,10
@@
def reset():
if g['reset']:
printNicely(magenta('Need tips ? Type "h" and hit Enter key!'))
g['reset'] = False
+ try:
+ print eval(g['cmd'])
+ except:
+ pass
def process(cmd):
@@
-1180,6
+1184,7
@@
def listen():
cmd = line.split()[0]
except:
cmd = ''
+ g['cmd'] = cmd
# Save cmd to global variable and call process
try:
g['stuff'] = ' '.join(line.split()[1:])