gimp r26746 - in trunk: . plug-ins/pygimp/plug-ins



Author: larsc
Date: Sun Aug 24 16:54:38 2008
New Revision: 26746
URL: http://svn.gnome.org/viewvc/gimp?rev=26746&view=rev

Log:
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.



Modified:
   trunk/ChangeLog
   trunk/plug-ins/pygimp/plug-ins/python-eval.py

Modified: trunk/plug-ins/pygimp/plug-ins/python-eval.py
==============================================================================
--- trunk/plug-ins/pygimp/plug-ins/python-eval.py	(original)
+++ trunk/plug-ins/pygimp/plug-ins/python-eval.py	Sun Aug 24 16:54:38 2008
@@ -23,7 +23,7 @@
     if code == '-':
         import sys
         code = sys.stdin
-    exec code
+    exec code in globals()
  
 register(
         "python-fu-eval",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]