Skip to content
Snippets Groups Projects
Commit 9690956c authored by Federico Felici's avatar Federico Felici
Browse files

Correct relative path for CodeGen/Cache folder

parent 99a3d685
No related branches found
No related tags found
No related merge requests found
......@@ -422,8 +422,8 @@ classdef SCDclass_expcode
obj.buildworkspacetpstruct;
%% Set Cache Folder for experimental code (avoid conflicts with other tmp files)
CacheFolder = fullfile(fileparts(mfilename('fullpath')),'gencodes',...
sprintf('CacheFolder-%d',obj.maincode));
CacheFolder = fullfile(fileparts(mfilename('fullpath')),'..','..',...
'gencodes',sprintf('CacheFolder-%d',obj.maincode));
fprintf('Setting Simulink Cache folder to %s\n',CacheFolder)
Simulink.fileGenControl('set',...
'CacheFolder',CacheFolder,...
......@@ -592,8 +592,8 @@ classdef SCDclass_expcode
end
% set CodeGen folder for this expcode (allows fast rebuilding)
CodeGenFolder = fullfile(fileparts(mfilename('fullpath')),'gencodes',...
sprintf('CodeGenFolder-%d',obj.maincode));
CodeGenFolder = fullfile(fileparts(mfilename('fullpath')),'..','..',...
'gencodes',sprintf('CodeGenFolder-%d',obj.maincode));
fprintf(' ...Setting code generation folder to %s\n',CodeGenFolder)
Simulink.fileGenControl('set',...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment