diff scripts/pkg/pkg.m @ 6025:bb0c9f97fe4f

[project @ 2006-10-03 19:21:09 by jwe]
author jwe
date Tue, 03 Oct 2006 19:21:09 +0000
parents f542445f6b7a
children dcecca0396e6
line wrap: on
line diff
--- a/scripts/pkg/pkg.m
+++ b/scripts/pkg/pkg.m
@@ -1068,7 +1068,9 @@
             endif
         endfor
     endif
-    addpath(dirs{:});
+    if (length(dirs) > 0)
+        addpath(dirs{:});
+    endif
 
     ## Add local binaries, if any, to the EXEC_PATH
     for i = 1:length(dirs)