gnome-specimen r83 - branches/import-from-bzr



Author: wbolster
Date: Tue Jun 17 18:53:17 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:
   branches/import-from-bzr/   (props changed)
   branches/import-from-bzr/gnome-specimen.in

Modified: branches/import-from-bzr/gnome-specimen.in
==============================================================================
--- branches/import-from-bzr/gnome-specimen.in	(original)
+++ branches/import-from-bzr/gnome-specimen.in	Tue Jun 17 18:53:17 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]