diff +mpm/install_location.m @ 1:2007c2cd566a

Add some functions for handeling state
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 10 Sep 2018 14:55:47 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/+mpm/install_location.m	Mon Sep 10 14:55:47 2018 +0200
@@ -0,0 +1,7 @@
+function p = install_location()
+   nameCurrentFile = mfilename('fullpath');
+   pathParts = split(nameCurrentFile, filesep);
+
+   p = join(pathParts(1:end-2), filesep);
+   p = p{1};
+end