Try to make sure we have an absolute path for executables

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32291 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-02-22 12:22:49 +00:00
parent e6fca186b1
commit c7c3b61563
2 changed files with 4 additions and 0 deletions

View file

@ -1,5 +1,6 @@
2011-02-22 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSBundle.m: Make private executable path be an absolute path.
* Source/NSDateFormatter.m:
* Source/NSLocale.m:
* Source/NSNumberFormatter.m:

View file

@ -269,6 +269,9 @@ GSPrivateExecutablePath()
{
executablePath
= [[[NSProcessInfo processInfo] arguments] objectAtIndex: 0];
}
if (NO == [executablePath isAbsolutePath])
{
executablePath = AbsolutePathOfExecutable(executablePath, YES);
}