eog r4971 - in trunk: . src



Author: csaavedra
Date: Mon Jan 26 18:55:00 2009
New Revision: 4971
URL: http://svn.gnome.org/viewvc/eog?rev=4971&view=rev

Log:
2009-01-26  Claudio Saavedra  <csaavedra igalia com>

	* src/eog-python-module.c: (eog_python_init): Sanitize sys.path.
	Fixes bug #569228 (James Vega)



Modified:
   trunk/ChangeLog
   trunk/src/eog-python-module.c

Modified: trunk/src/eog-python-module.c
==============================================================================
--- trunk/src/eog-python-module.c	(original)
+++ trunk/src/eog-python-module.c	Mon Jan 26 18:55:00 2009
@@ -388,6 +388,9 @@
 
 	PySys_SetArgv (1, argv);
 
+	/* Sanitize sys.path */
+	PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)");
+
 	if (!check_pygtk2 ()) {
 		/* Warning message already printed in check_pygtk2 */
 		goto python_init_error;



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