mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 23:12:40 +00:00
Monotone-Parent: 3506bd18bc8c2147bebd7f22c05323ede7752c62
Monotone-Revision: 394b1692941b08185f4b0f87ec52bc7c0dc6c824 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-07-22T20:28:49 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
53c646a072
commit
6192f0d077
2 files changed
+24
-7
No files matched your search
@@ -22,6 +22,7 @@
|
||||
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSFileManager.h>
|
||||
#import <Foundation/NSProcessInfo.h>
|
||||
|
||||
#import <SaxObjC/SaxXMLReaderFactory.h>
|
||||
@@ -37,18 +38,14 @@
|
||||
- (NSArray *) saxReaderSearchPathes
|
||||
{
|
||||
NSArray *pathes, *args;
|
||||
NSDictionary *env;
|
||||
NSString *pwd, *exedir;
|
||||
NSString *cwd, *exedir;
|
||||
|
||||
args = [[NSProcessInfo processInfo] arguments];
|
||||
env = [[NSProcessInfo processInfo] environment];
|
||||
pwd = [env objectForKey: @"PWD"];
|
||||
if (!pwd)
|
||||
pwd = @"";
|
||||
cwd = [[NSFileManager defaultManager] currentDirectoryPath];
|
||||
exedir = [[args objectAtIndex: 0] stringByDeletingLastPathComponent];
|
||||
pathes = [NSArray arrayWithObject:
|
||||
[NSString stringWithFormat: @"%@/%@/%@",
|
||||
pwd, exedir,
|
||||
cwd, exedir,
|
||||
@"../../../SOPE/NGCards/versitCardsSaxDriver/"]];
|
||||
|
||||
return pathes;
|
||||
|
||||
Reference in new issue
Block a user