From f3d45f8e21434f77c03926c42d350700d3124528 Mon Sep 17 00:00:00 2001 From: jonaslaux Date: Thu, 15 Nov 2018 20:23:54 +0100 Subject: [PATCH] added pre ale dic to ale file check --- plugin/ios/ALPluginScanViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/ios/ALPluginScanViewController.m b/plugin/ios/ALPluginScanViewController.m index e614ad0f..3d18d95b 100644 --- a/plugin/ios/ALPluginScanViewController.m +++ b/plugin/ios/ALPluginScanViewController.m @@ -90,7 +90,7 @@ - (void)viewDidLoad { if (customCmdFile) { NSString *fileName = [self.anylineConfig valueForKeyPath:@"viewPlugin.plugin.ocrPlugin.customCmdFile"]; if (fileName) { - NSString *cmdFileDirectoryPath = [fileName stringByDeletingLastPathComponent]; + NSString *cmdFileDirectoryPath = [NSString stringWithFormat:@"%@/%@",@"ale", [fileName stringByDeletingLastPathComponent]]; NSString *pathResource = [[fileName lastPathComponent] stringByDeletingPathExtension]; NSString *filePath = [[NSBundle mainBundle] pathForResource:pathResource ofType:@"ale" inDirectory:cmdFileDirectoryPath];