eog r4972 - in branches/gnome-2-24: . src
- From: csaavedra svn gnome org
- To: svn-commits-list gnome org
- Subject: eog r4972 - in branches/gnome-2-24: . src
- Date: Mon, 26 Jan 2009 18:57:56 +0000 (UTC)
Author: csaavedra
Date: Mon Jan 26 18:57:55 2009
New Revision: 4972
URL: http://svn.gnome.org/viewvc/eog?rev=4972&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:
branches/gnome-2-24/ChangeLog
branches/gnome-2-24/src/eog-python-module.c
Modified: branches/gnome-2-24/src/eog-python-module.c
==============================================================================
--- branches/gnome-2-24/src/eog-python-module.c (original)
+++ branches/gnome-2-24/src/eog-python-module.c Mon Jan 26 18:57:55 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]