[PD-cvs] packages/patches remove_dotdot_from_guidir-0.39.2.patch, NONE, 1.1 openhtml_win32_fix-0.39-2.patch, 1.1, NONE

Hans-Christoph Steiner eighthave at users.sourceforge.net
Wed Feb 22 05:43:09 CET 2006


Update of /cvsroot/pure-data/packages/patches
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4882

Added Files:
	remove_dotdot_from_guidir-0.39.2.patch 
Removed Files:
	openhtml_win32_fix-0.39-2.patch 
Log Message:
switched in Martin Peach's cleaner fix for the .. in pd_guidir on Windows, it shouldn't cause trouble on other platforms, but we shall see...

--- NEW FILE: remove_dotdot_from_guidir-0.39.2.patch ---
--- u_main.tk	2006-01-26 11:15:41.468750000 -0500
+++ u_main.tk	2006-01-26 11:47:40.375000000 -0500
@@ -35,8 +35,8 @@
     global pd_guidir
     global pd_tearoff
     set pd_gui2 [string range $argv0 0 [expr [string last \\ $argv0 ] - 1]]
-    regsub -all \\\\ $pd_gui2 / pd_gui3
-    set pd_guidir $pd_gui3/..
+    regsub -all \\\\ $pd_gui2 / pd_guidir
+	set pd_guidir [string range $pd_guidir 0 [expr [string last / $pd_guidir] - 1]]
     load $pd_guidir/bin/pdtcl.dll
     set pd_tearoff 1
 }

--- openhtml_win32_fix-0.39-2.patch DELETED ---





More information about the Pd-cvs mailing list