diff options
Diffstat (limited to 'CSXCAD/linux/CSXGeomPlot.m.patch')
-rw-r--r-- | CSXCAD/linux/CSXGeomPlot.m.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/CSXCAD/linux/CSXGeomPlot.m.patch b/CSXCAD/linux/CSXGeomPlot.m.patch new file mode 100644 index 0000000..09dc664 --- /dev/null +++ b/CSXCAD/linux/CSXGeomPlot.m.patch @@ -0,0 +1,25 @@ +diff --git a/matlab/CSXGeomPlot.m b/matlab/CSXGeomPlot.m +index 21d3ef8..37427a1 100644 +--- a/matlab/CSXGeomPlot.m ++++ b/matlab/CSXGeomPlot.m +@@ -13,18 +13,10 @@ if nargin < 1 + error 'specify the xml file to open' + end + +-filename = mfilename('fullpath'); +-dir = fileparts( filename ); +-AppCSXCAD_Path = [dir filesep '../../AppCSXCAD' filesep]; +- +-if (~exist(AppCSXCAD_Path,'dir')) +- AppCSXCAD_Path = [dir filesep '..' filesep] +-end +- + if isunix +- AppCSXCAD_Path = [AppCSXCAD_Path 'AppCSXCAD.sh']; ++ AppCSXCAD_Path = 'AppCSXCAD.sh'; + else +- AppCSXCAD_Path = [AppCSXCAD_Path 'AppCSXCAD']; ++ AppCSXCAD_Path = 'AppCSXCAD'; + end + + command = [AppCSXCAD_Path ' --disableEdit ' CSX_filename]; |