From 0c9dd2fe2575fdc5fba8cfae4a171e65fafbbce9 Mon Sep 17 00:00:00 2001
From: "Christoph.Knote" <christoph.knote@physik.uni-muenchen.de>
Date: Thu, 14 Dec 2017 16:31:44 +0100
Subject: [PATCH] Updates to 1.7

---
 boxmox/experiment.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/boxmox/experiment.py b/boxmox/experiment.py
index c4cc1ff..8213d95 100644
--- a/boxmox/experiment.py
+++ b/boxmox/experiment.py
@@ -38,7 +38,11 @@ examples = { x: ExampleData(os.path.join(examplesPath, x)) for x in os.listdir(e
 
 compiledMechsPath=os.path.join(os.environ['KPP_HOME'], "boxmox", "compiled_mechs")
 
-compiledMechs = [ x for x in os.listdir(compiledMechsPath) if (os.path.isdir( os.path.join(compiledMechsPath, x) )) and ("_adjoint" not in x) ]
+compiledMechs = []
+try:
+    compiledMechs = [ x for x in os.listdir(compiledMechsPath) if (os.path.isdir( os.path.join(compiledMechsPath, x) )) and ("_adjoint" not in x) ]
+except:
+    print("No compile_mechs directory found")
 
 class Namelist:
     '''
-- 
GitLab