gnome-games r7658 - in trunk/glchess: . src



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

Modified: trunk/glchess/src/glchess.in.in
==============================================================================
--- trunk/glchess/src/glchess.in.in	(original)
+++ trunk/glchess/src/glchess.in.in	Wed May 14 12:14:33 2008
@@ -34,9 +34,6 @@
     try:
       # Import glChess from pyexecdir or system installation.
       installed_mode = True
-      import sys
-      if "#pyexecdir#" not in sys.path:
-          sys.path.insert(0, "#pyexecdir#")
       from glchess.glchess import start_game
 
     except ImportError:



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