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 ...@@ -422,8 +422,8 @@ classdef SCDclass_expcode
obj.buildworkspacetpstruct; obj.buildworkspacetpstruct;
%% Set Cache Folder for experimental code (avoid conflicts with other tmp files) %% Set Cache Folder for experimental code (avoid conflicts with other tmp files)
CacheFolder = fullfile(fileparts(mfilename('fullpath')),'gencodes',... CacheFolder = fullfile(fileparts(mfilename('fullpath')),'..','..',...
sprintf('CacheFolder-%d',obj.maincode)); 'gencodes',sprintf('CacheFolder-%d',obj.maincode));
fprintf('Setting Simulink Cache folder to %s\n',CacheFolder) fprintf('Setting Simulink Cache folder to %s\n',CacheFolder)
Simulink.fileGenControl('set',... Simulink.fileGenControl('set',...
'CacheFolder',CacheFolder,... 'CacheFolder',CacheFolder,...
...@@ -592,8 +592,8 @@ classdef SCDclass_expcode ...@@ -592,8 +592,8 @@ classdef SCDclass_expcode
end end
% set CodeGen folder for this expcode (allows fast rebuilding) % set CodeGen folder for this expcode (allows fast rebuilding)
CodeGenFolder = fullfile(fileparts(mfilename('fullpath')),'gencodes',... CodeGenFolder = fullfile(fileparts(mfilename('fullpath')),'..','..',...
sprintf('CodeGenFolder-%d',obj.maincode)); 'gencodes',sprintf('CodeGenFolder-%d',obj.maincode));
fprintf(' ...Setting code generation folder to %s\n',CodeGenFolder) fprintf(' ...Setting code generation folder to %s\n',CodeGenFolder)
Simulink.fileGenControl('set',... 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