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

svn path=/trunk/; revision=7658
This commit is contained in:
Robert Ancell 2008-05-14 12:14:33 +00:00
parent 1ecf108ae7
commit 30fd6d6aa0
2 changed files with 2 additions and 3 deletions

View file

@ -2,6 +2,8 @@
* src/lib/scene/opengl/png.py: Updated to latest version from pypng. Open files in binary
mode so they work in Windows.
* src/glchess.in.in: Don't modify sys.path as this can cause modules to be loaded that
don't match the intepreter version (Bug #528953)
2008-05-10 Robert Ancell <robert.ancell@gmail.com>

View file

@ -34,9 +34,6 @@ except ImportError:
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: