gnome-games r7659 - in trunk/gnome-sudoku: . src



Author: rancell
Date: Wed May 14 12:16:49 2008
New Revision: 7659
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7659&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:
   trunk/gnome-sudoku/ChangeLog
   trunk/gnome-sudoku/src/gnome-sudoku.in.in

Modified: trunk/gnome-sudoku/src/gnome-sudoku.in.in
==============================================================================
--- trunk/gnome-sudoku/src/gnome-sudoku.in.in	(original)
+++ trunk/gnome-sudoku/src/gnome-sudoku.in.in	Wed May 14 12:16:49 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]