mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +00:00
([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:
parent
8033307824
commit
59f45702c8
1 changed files with 4 additions and 1 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue