mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
e6fca186b1
commit
c7c3b61563
2 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -269,6 +269,9 @@ GSPrivateExecutablePath()
|
|||
{
|
||||
executablePath
|
||||
= [[[NSProcessInfo processInfo] arguments] objectAtIndex: 0];
|
||||
}
|
||||
if (NO == [executablePath isAbsolutePath])
|
||||
{
|
||||
executablePath = AbsolutePathOfExecutable(executablePath, YES);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue