Skip to content

Commit

Permalink
Tweak bundle path lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiltonc committed Nov 4, 2012
1 parent 3c5c3b4 commit f471780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Tesseract.mm
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ - (void)copyDataToDocumentsDirectory {

// Copy data in Doc Directory
if (![fileManager fileExistsAtPath:dataPath]) {
NSString *bundlePath = [[NSBundle mainBundle] bundlePath];
NSString *bundlePath = [[NSBundle bundleForClass:[self class]] bundlePath];
NSString *tessdataPath = [bundlePath stringByAppendingPathComponent:_dataPath];
if (tessdataPath) {
[fileManager copyItemAtPath:tessdataPath toPath:dataPath error:nil];
Expand Down

0 comments on commit f471780

Please sign in to comment.