[PD-cvs] SF.net SVN: pure-data:[10742] branches/pd-devel/0.41.4/src/pd.tk

eighthave at users.sourceforge.net eighthave at users.sourceforge.net
Thu Feb 5 22:47:15 CET 2009


Revision: 10742
          http://pure-data.svn.sourceforge.net/pure-data/?rev=10742&view=rev
Author:   eighthave
Date:     2009-02-05 21:47:15 +0000 (Thu, 05 Feb 2009)

Log Message:
-----------
ixed up setting auto_path so it works when launching Pd from a pd.desktop menu item; on GNU/Linux, the 'pd' binary and the pd.tk and Tcl files are in separate dirs, so "." won't work

Modified Paths:
--------------
    branches/pd-devel/0.41.4/src/pd.tk

Modified: branches/pd-devel/0.41.4/src/pd.tk
===================================================================
--- branches/pd-devel/0.41.4/src/pd.tk	2009-02-05 05:06:15 UTC (rev 10741)
+++ branches/pd-devel/0.41.4/src/pd.tk	2009-02-05 21:47:15 UTC (rev 10742)
@@ -55,7 +55,7 @@
 # packages for this project
 
 # packages are stored in the same directory as the main script and executable
-set auto_path [linsert $auto_path 0 "."]
+set auto_path [linsert $auto_path 0 [file dirname [info script]]]
 package require pd_connect
 package require pd_menus
 package require pd_bindings


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list