Index: /issm/trunk-jpl/src/m/dev/developmentpath.m
===================================================================
--- /issm/trunk-jpl/src/m/dev/developmentpath.m	(revision 16117)
+++ /issm/trunk-jpl/src/m/dev/developmentpath.m	(revision 16117)
@@ -0,0 +1,40 @@
+% clear the last warning to focus on the warnings of the ISSM path
+lastwarn(''); 
+
+%Recover ISSM_DIR , or if on a Windows machine, ISSM_DIR_WIN
+if ~ispc,
+	ISSM_DIR=getenv('ISSM_DIR');
+else
+	ISSM_DIR=getenv('ISSM_DIR_WIN');
+end
+if (isempty(ISSM_DIR)),
+	error('''ISSM_DIR'' environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!');
+end
+
+%Now add all issm code paths necessary to run issm smoothly. 
+%We capture the error output, so that we can warn the user to update 
+%the variable ISSM_DIR in this file, in case it is not correctly setup. 
+
+%ISSM path
+addpath([ISSM_DIR '/src/m/os/']); %load recursivepath
+addpath([ISSM_DIR '/lib']);       %load mex
+addpath(recursivepath([ISSM_DIR '/src/m']));
+addpath(recursivepath([ISSM_DIR '/externalpackages/scotch']));
+addpath(recursivepath([ISSM_DIR '/externalpackages/canos']));
+addpath(recursivepath([ISSM_DIR '/externalpackages/kml']));
+addpath(recursivepath([ISSM_DIR '/externalpackages/export_fig']));
+addpath(recursivepath([ISSM_DIR '/externalpackages/googleearthtoolbox']));
+addpath(recursivepath([ISSM_DIR '/externalpackages/howatmask']));
+addpath(recursivepath([ISSM_DIR '/externalpackages/dem']));
+clear ISSM_DIR;
+
+%Check on any warning messages that might indicate that the paths were not correct. 
+if ~isempty(lastwarn),
+	fprintf('\n  Error trying to setup ''ISSM'' code paths. Try and update the ISSM_DIR variable in your .cshrc or .bashrc!\n');
+	fprintf('  ''ISSM'' will not  work at all until this is resolved\n\n');
+else
+	fprintf('\n  ISSM development path correctly loaded\n\n');
+end
+
+%disable matlab bell!
+beep off;
Index: /issm/trunk-jpl/src/m/dev/developmentpath.py
===================================================================
--- /issm/trunk-jpl/src/m/dev/developmentpath.py	(revision 16117)
+++ /issm/trunk-jpl/src/m/dev/developmentpath.py	(revision 16117)
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+
+import os,sys
+
+#Recover ISSM_DIR and USERNAME
+ISSM_DIR=os.getenv('ISSM_DIR')
+USERNAME =os.getenv('USER')
+if(ISSM_DIR==None):
+	raise NameError('"ISSM_DIR" environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!')
+
+#Go through src/m and append any directory that contains a *.py file to PATH 
+for root,dirs,files in os.walk(ISSM_DIR+ '/src/m'):
+	if '.svn' in dirs:
+		dirs.remove('.svn')
+	for file in files:
+		if file.find(".py") != -1:
+			if file.find(".pyc") == -1:
+				if root not in sys.path:
+					sys.path.append(root)
+				
+sys.path.append(ISSM_DIR + '/lib')
+
+#Manual imports for commonly used functions
+from plotmodel import plotmodel
+
+print("\n  ISSM development path correctly loaded\n\n")
