]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/commitdiff
Fix retreiving of the CCS root path
authorMichal Horn <hornmich@fel.cvut.cz>
Tue, 18 Nov 2014 16:54:07 +0000 (17:54 +0100)
committerMichal Horn <hornmich@fel.cvut.cz>
Tue, 18 Nov 2014 16:54:07 +0000 (17:54 +0100)
The path contained only ordinar slashes (/), which was wrong for Windows.

rpp/rpp/rpp_setup.m

index f2dc60fd6bb4ca18cc13dd7c86310ac70764953c..a695dbd95260d9b79dfdddc91e9ab79ed9058a3f 100644 (file)
@@ -54,7 +54,7 @@ function rpp_setup(varargin)
     else
         CompilerRoot = fix_slash(varargin{1});
     end
-    CCSRoot      = fileparts(fileparts(fileparts(CompilerRoot)));
+    CCSRoot      = fullfile(fileparts(CompilerRoot));
     TargetRoot   = fix_slash(currentPath);
     RppLibRoot   = fullfile(fileparts(TargetRoot), 'lib');