mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
win32 path handling simplifications (and some bug fixes).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21276 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
987497d4b1
commit
3fc6c34dd5
11 changed files with 252 additions and 255 deletions
|
@ -581,13 +581,8 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
|||
#endif
|
||||
if (_executable_path == nil || [_executable_path length] == 0)
|
||||
{
|
||||
const char *tmp;
|
||||
|
||||
_executable_path =
|
||||
[[[NSProcessInfo processInfo] arguments] objectAtIndex: 0];
|
||||
tmp = [_executable_path UTF8String];
|
||||
_executable_path = [[NSFileManager defaultManager]
|
||||
stringWithFileSystemRepresentation: tmp length: strlen(tmp)];
|
||||
_executable_path =
|
||||
[self _absolutePathOfExecutable: _executable_path];
|
||||
NSAssert(_executable_path, NSInternalInconsistencyException);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue