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:
CaS 2005-06-04 07:22:51 +00:00
parent 987497d4b1
commit 3fc6c34dd5
11 changed files with 252 additions and 255 deletions

View file

@ -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);