Show More
@@ -150,11 +150,12 b' def add_file(self,fname):' | |||||
150 | p2 = c.currentPosition().insertAfter() |
|
150 | p2 = c.currentPosition().insertAfter() | |
151 |
|
151 | |||
152 | def push_script(p): |
|
152 | def push_script(p): | |
153 |
script = g.getScript(c,p,useSelectedText=False,forcePythonSentinels=True,useSentinels= |
|
153 | script = g.getScript(c,p,useSelectedText=False,forcePythonSentinels=True,useSentinels=False) | |
154 | script = g.splitLines(script + '\n') |
|
154 | script = g.splitLines(script + '\n') | |
155 | script = ''.join(z for z in script if z.strip()) |
|
155 | script = ''.join(z for z in script if z.strip()) | |
156 | ip.runlines(script) |
|
156 | ip.runlines(script) | |
157 | print "- Script end -" |
|
157 | g.es('ipy script:',p.headString()) | |
|
158 | print " ->" | |||
158 |
|
159 | |||
159 | def eval_body(body): |
|
160 | def eval_body(body): | |
160 | try: |
|
161 | try: | |
@@ -168,6 +169,7 b' def push_variable(p,varname):' | |||||
168 | body = p.bodyString() |
|
169 | body = p.bodyString() | |
169 | val = eval_body(body.strip()) |
|
170 | val = eval_body(body.strip()) | |
170 | ip.user_ns[varname] = val |
|
171 | ip.user_ns[varname] = val | |
|
172 | g.es('ipy var:',varname) | |||
171 |
|
173 | |||
172 | def push_from_leo(p): |
|
174 | def push_from_leo(p): | |
173 | # headstring without @ are just scripts |
|
175 | # headstring without @ are just scripts |
General Comments 0
You need to be logged in to leave comments.
Login now