[35039] users/rhwood/MacPorts.Framework/MPInterpreter.m

rhwood at macports.org rhwood at macports.org
Sat Mar 15 04:06:29 PDT 2008


Revision: 35039
          http://trac.macosforge.org/projects/macports/changeset/35039
Author:   rhwood at macports.org
Date:     2008-03-15 04:06:28 -0700 (Sat, 15 Mar 2008)

Log Message:
-----------
Load init.tcl from the correct Bundle

Modified Paths:
--------------
    users/rhwood/MacPorts.Framework/MPInterpreter.m

Modified: users/rhwood/MacPorts.Framework/MPInterpreter.m
===================================================================
--- users/rhwood/MacPorts.Framework/MPInterpreter.m	2008-03-15 10:31:23 UTC (rev 35038)
+++ users/rhwood/MacPorts.Framework/MPInterpreter.m	2008-03-15 11:06:28 UTC (rev 35039)
@@ -47,7 +47,7 @@
 			NSLog(@"Error in Tcl Init: %s", Tcl_GetStringResult(_interpreter));
 			Tcl_DeleteInterp(_interpreter);
 		}
-		if( Tcl_EvalFile(_interpreter, [[[NSBundle mainBundle] pathForResource:@"init" ofType:@"tcl"] UTF8String]) != TCL_OK) {
+		if( Tcl_EvalFile(_interpreter, [[[NSBundle bundleWithIdentifier:@"org.macports.frameworks.macports"] pathForResource:@"init" ofType:@"tcl"] UTF8String]) != TCL_OK) {
 			NSLog(@"Error in Tcl_EvalFile: %s", Tcl_GetStringResult(_interpreter));
 			Tcl_DeleteInterp(_interpreter);
 		}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080315/d91177aa/attachment.html


More information about the macports-changes mailing list