gnome-games r7660 - in branches/gnome-2-22/gnome-sudoku: . src



Author: rancell
Date: Wed May 14 12:17:18 2008
New Revision: 7660
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7660&view=rev

Log:
Don't modify sys.path as this can cause modules to be loaded that don't match the intepreter version (Bug #528953)

Modified:
   branches/gnome-2-22/gnome-sudoku/ChangeLog
   branches/gnome-2-22/gnome-sudoku/src/gnome-sudoku.in.in

Modified: branches/gnome-2-22/gnome-sudoku/src/gnome-sudoku.in.in
==============================================================================
--- branches/gnome-2-22/gnome-sudoku/src/gnome-sudoku.in.in	(original)
+++ branches/gnome-2-22/gnome-sudoku/src/gnome-sudoku.in.in	Wed May 14 12:17:18 2008
@@ -31,9 +31,6 @@
     try:
       # Import gnome-sudoku from pyexecdir or system installation.
       installed_mode = True
-      import sys
-      if "#pyexecdir#" not in sys.path:
-          sys.path.insert(0, "#pyexecdir#")
       from gnome_sudoku.gnome_sudoku import start_game
 
     except ImportError:



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