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:
Lars-Peter Clausen 2008-08-24 16:54:38 +00:00 committed by Lars-Peter Clausen
parent 0527aaa3e4
commit 141e7eb460
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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",