mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +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
e689faf81a
commit
50b460778c
2 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
2011-02-22 Richard Frith-Macdonald <rfm@gnu.org>
|
2011-02-22 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSBundle.m: Make private executable path be an absolute path.
|
||||||
* Source/NSDateFormatter.m:
|
* Source/NSDateFormatter.m:
|
||||||
* Source/NSLocale.m:
|
* Source/NSLocale.m:
|
||||||
* Source/NSNumberFormatter.m:
|
* Source/NSNumberFormatter.m:
|
||||||
|
|
|
@ -269,6 +269,9 @@ GSPrivateExecutablePath()
|
||||||
{
|
{
|
||||||
executablePath
|
executablePath
|
||||||
= [[[NSProcessInfo processInfo] arguments] objectAtIndex: 0];
|
= [[[NSProcessInfo processInfo] arguments] objectAtIndex: 0];
|
||||||
|
}
|
||||||
|
if (NO == [executablePath isAbsolutePath])
|
||||||
|
{
|
||||||
executablePath = AbsolutePathOfExecutable(executablePath, YES);
|
executablePath = AbsolutePathOfExecutable(executablePath, YES);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue