Wim Oudshoorn <[EMAIL PROTECTED]> writes:

> I will commit this patch shortly if nobody objects
>
>
> Problem
> -------
> If a tool has resources they are not found (Windows platform only)
>
> Reason
> ------
> The resources are stored in a directory containing the toolname
> but the toolname is determined from the executable name, which
> on windows ends in .exe
>
> Solution
> --------
> On the windows platform strip the last pathcomponent from
> the executable name when determining the main bundle path
>
Forgot the patch

*** base/Source/NSBundle.m	2003/06/20 15:02:27	1.1.1.2
--- base/Source/NSBundle.m	2003/06/20 15:07:53	1.3
***************
*** 780,786 ****
           the executable name here - just in case it turns out it's a
           tool.  */
        NSString *toolName = [_executable_path lastPathComponent];
! 
        /* Strip off the name of the program */
        path = [_executable_path stringByDeletingLastPathComponent];
  
--- 780,789 ----
           the executable name here - just in case it turns out it's a
           tool.  */
        NSString *toolName = [_executable_path lastPathComponent];
! #if defined(__WIN32__)
!       toolName = [toolName stringByDeletingPathExtension];
! #endif
!       
        /* Strip off the name of the program */
        path = [_executable_path stringByDeletingLastPathComponent];
  
_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to