([NSBundle +mainBundle]): on WIN32 strip .exe

extension from executable name when constructing mainBundle path.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18689 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
wim 2004-02-27 14:08:00 +00:00
parent 8033307824
commit 59f45702c8

View file

@ -787,7 +787,10 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
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];