From 05773e5edfd4827870707cb8d50efbd50a8ed69f Mon Sep 17 00:00:00 2001
From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Tue, 20 Oct 2009 12:57:22 +0000
Subject: [PATCH] CheckPath: another fix

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3054 ac1d8469-bf42-47a9-8791-bf33cf982152
---
 matlab/CheckPath.m | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/matlab/CheckPath.m b/matlab/CheckPath.m
index 51699d8bab..734efa7192 100644
--- a/matlab/CheckPath.m
+++ b/matlab/CheckPath.m
@@ -32,13 +32,13 @@ global M_
 DirectoryName = [ M_.dname '/' type ];
 
 if ~isdir(M_.dname)
-    % Make sure there isn't a file with the same name
+    % Make sure there isn't a file with the same name, see trac ticket #47
     delete(M_.dname)
     mkdir('.', M_.dname);
 end
 
 if ~isdir(DirectoryName)
-    % Make sure there isn't a file with the same name
-    delete(M_.dname)
+    % Make sure there isn't a file with the same name, see trac ticket #47
+    delete(DirectoryName)
     mkdir('.',DirectoryName);
 end
-- 
GitLab