GNOME Bugzilla – Bug 406672
installation in different prefix still opens old gnome-sudoku
Last modified: 2008-01-12 13:54:39 UTC
If gnome-sudoku is installed into some prefix, say /home/user/local it will still load old gnome-sudoku first: try: from gnome_sudoku.gnome_sudoku import start_game except ImportError: import sys if "/home/shmyrev/t/lib/python2.5/site-packages" not in sys.path: sys.path.insert(0, "/home/shmyrev/t/lib/python2.5/site-packages") from gnome_sudoku.gnome_sudoku import start_game
The same trouble for glchess
If you uninstall the old gnome-sudoku, and reinstall the latest gnome-games, do you have any problems then? I don't see how this could be solved in another way at the moment.
No, it's not a question of my installation, it's just a problem of your load script. Do not load system wide packages first, reorder those two calls. First of all try to load packages from prefix and only then system-wide packages.
Look into deskbar applet: http://svn.gnome.org/viewcvs/deskbar-applet/trunk/deskbar/deskbar-applet.py?rev=962&view=markup it does things correctly
Setting target to gnome 2.20.
*** Bug 416700 has been marked as a duplicate of this bug. ***
Created attachment 102642 [details] [review] Reorder to load from prefix before system wide I committed the attached patch to make gnome-sudoku try to load from the prefix before looking system wide.
Thomas, could you please commit the same patch to glChess? The two Python games should always have identical startup-code.
Fixed in glChess also now.
Yeah, I planned to, but it was really late and glchess wouldn't build for me so I decided to postpone that till today. But I see you fixed it already. Nice :)