gnome-games r7657 - in branches/gnome-2-22/glchess: . src



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

Modified: branches/gnome-2-22/glchess/src/glchess.in.in
==============================================================================
--- branches/gnome-2-22/glchess/src/glchess.in.in	(original)
+++ branches/gnome-2-22/glchess/src/glchess.in.in	Wed May 14 12:14:12 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]