From 743fb2995eb8f00801f1619d9d9e22ce3b31becc Mon Sep 17 00:00:00 2001
From: adrien-matta <a.matta@surrey.ac.uk>
Date: Mon, 14 Dec 2015 13:26:16 +0000
Subject: [PATCH] * Updating nptool.sh npp command and README.md to reflect new
 folder * structure

---
 README.md | 3 +--
 nptool.sh | 7 ++++++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index c74c790a8..1c5a8b91a 100644
--- a/README.md
+++ b/README.md
@@ -89,8 +89,7 @@ This will run the 11Li(d,3He)10He->8He+n+n simulation and produce a root file lo
 
 You can now try to analyse this simulated tree using the associated NPAnalysis project:
 ````
-$ npa
-$ cd Example1/
+$ npp Example1
 $ cmake ./
 $ make -jn
 $ npanalysis -R RunToTreat.txt -O Example1
diff --git a/nptool.sh b/nptool.sh
index aa206f93b..7e10b53b9 100644
--- a/nptool.sh
+++ b/nptool.sh
@@ -35,7 +35,12 @@ export npa_not_supported='npa is now longer supported, use npp instead'
 alias npa='echo $npa_not_supported'
 
 function npp {
-  cd $NPTOOL/Projects/$1
+  if [[ $1 == *"Example"* ]]
+  then
+    cd $NPTOOL/Examples/$1 
+  else
+    cd $NPTOOL/Projects/$1
+  fi
 }
 
 
-- 
GitLab