Moved execution into global namespace. Fixes import statements inside of
2008-08-24 Lars-Peter Clausen <lars@metafoo.de> * plug-ins/pygimp/plug-ins/python-fu-eval.py: Moved execution into global namespace. Fixes import statements inside of evaled code. svn path=/trunk/; revision=26746
This commit is contained in:
parent
0527aaa3e4
commit
141e7eb460
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2008-08-24 Lars-Peter Clausen <lars@metafoo.de>
|
||||
|
||||
* plug-ins/pygimp/plug-ins/python-fu-eval.py: Moved execution into
|
||||
global namespace. Fixes import statements inside of evaled code.
|
||||
|
||||
2008-08-24 Lars-Peter Clausen <lars@metafoo.de>
|
||||
|
||||
* plug-ins/pygimp/pygimp-pdb.c (pdb_getattro): Fix wrong strcmp
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ def code_eval(code):
|
|||
if code == '-':
|
||||
import sys
|
||||
code = sys.stdin
|
||||
exec code
|
||||
exec code in globals()
|
||||
|
||||
register(
|
||||
"python-fu-eval",
|
||||
|
|
|
|||
Loading…
Reference in a new issue