gnome-specimen r83 - trunk-from-bzr



Author: wbolster
Date: Tue Jun 17 18:42:39 2008
New Revision: 83
URL: http://svn.gnome.org/viewvc/gnome-specimen?rev=83&view=rev

Log:
* gnome-specimen.in:
  - Append the lib directory to the end of the path instead
    of inserting it at the front, since it seems to work
    better when running from the source directory.


Modified:
   trunk-from-bzr/   (props changed)
   trunk-from-bzr/gnome-specimen.in

Modified: trunk-from-bzr/gnome-specimen.in
==============================================================================
--- trunk-from-bzr/gnome-specimen.in	(original)
+++ trunk-from-bzr/gnome-specimen.in	Tue Jun 17 18:42:39 2008
@@ -20,8 +20,10 @@
 import sys
 
 if not "@pyexecdir@" in sys.path:
-    sys.path.insert (0, "@pyexecdir@")
-
+    # Append the directory to the end of sys.path, because inserting at the
+    # front (which seems to be common) breaks running modified versions from
+    # the source directory.
+    sys.path.append ("@pyexecdir@")
 
 import specimen.main
 specimen.main.main(sys.argv[1:])



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