File 0002-Fix-openEMS.sh-load.patch of Package openEMS

From f4a8c237cf695eea5601577d3135496757447f9f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Wed, 27 Dec 2017 08:34:02 +0100
Subject: [PATCH 2/6] Fix openEMS.sh load

---
 matlab/private/invoke_openEMS.m | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/matlab/private/invoke_openEMS.m b/matlab/private/invoke_openEMS.m
index afb2b463eb27..53478f40437d 100644
--- a/matlab/private/invoke_openEMS.m
+++ b/matlab/private/invoke_openEMS.m
@@ -27,9 +27,7 @@ filename = mfilename('fullpath');
 dir = fileparts( filename );
 
 if isunix
-    openEMS_bin = searchBinary('openEMS.sh', ...
-    {[dir filesep '..' filesep '..' filesep], ...  % try devel path
-     [dir filesep '..' filesep '..' filesep '..' filesep '..' filesep 'bin' filesep]}); % try (default) install path
+    openEMS_bin = 'openEMS.sh';
 else % assume windows
     openEMS_bin = searchBinary('openEMS.exe', [dir filesep '..' filesep '..' filesep]);
 end
-- 
2.15.1

openSUSE Build Service is sponsored by