diff sbplibVersion.m @ 612:77db2ef14191 feature/grids

Add function for finding the path of sbplib
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 11 Oct 2017 15:43:31 +0200
parents ae15b72c16c1
children
line wrap: on
line diff
--- a/sbplibVersion.m	Mon Oct 09 10:51:48 2017 +0200
+++ b/sbplibVersion.m	Wed Oct 11 15:43:31 2017 +0200
@@ -1,11 +1,10 @@
 % Prints the version and location of the sbplib currently in use.
 function sbplibVersion()
-    scriptname  = mfilename('fullpath');
-    [folder,~,~] = fileparts(scriptname);
+    location = sbplibLocation();
 
     name = 'sbplib (feature/grids)';
     ver = '0.0.x';
 
     fprintf('%s %s\n', name, ver);
-    fprintf('Running in:\n%s\n',folder);
+    fprintf('Running in:\n%s\n', location);
 end
\ No newline at end of file