Skip to content
Permalink
Browse files

DEBUG: allow access to aap from previous execution

  • Loading branch information...
tiborauer committed Jun 1, 2017
1 parent f5b4af6 commit d32db8f19d134de8423495628fa7e9dca37c4211
Showing with 4 additions and 3 deletions.
  1. +1 −1 aa_engine/aa_close.m
  2. +3 −2 aa_ver5.m
@@ -15,7 +15,7 @@ function aa_close(varargin)
global aacache;

if cell_index(tasks,'restorepath') && ...
(~isfield(aap.options,'restorepath') ||... % not specified
(~isstruct(aap) || ~isfield(aap.options,'restorepath') ||... % not specified
aap.options.restorepath) % specified and enabled
if isstruct(aacache) && isfield(aacache,'path')
if isfield(aacache.path,'bcp_path'), path(aacache.path.bcp_path); end
@@ -4,9 +4,10 @@
global aa

if isobject(aa)
aap = evalin('base','aap');
try aap = evalin('base','aap');
catch, aap = []; end
aas_log(aap,false,'WARNING: Previous execution of aa was not closed!')
aas_log(aap,false,'WARNING: Killing jobs and restoring path settings for both linux and MATLAB...!')
aas_log(aap,false,'WARNING: Killing jobs and restoring path settings for both linux and MATLAB...!')
aa_close(aap,'restorepath','restorewarnings','killjobs');
aas_log(aap,false,'WARNING: Done!')
else

0 comments on commit d32db8f

Please sign in to comment.
You can’t perform that action at this time.