canfestival/canfestival.py
changeset 1979 dc9e6f97cd8c
parent 1919 ccea0fa6ea91
child 1997 d9e8fb47340f
--- a/canfestival/canfestival.py	Mon Mar 19 16:18:17 2018 +0100
+++ b/canfestival/canfestival.py	Thu Apr 12 16:27:22 2018 +0200
@@ -38,14 +38,11 @@
     LOCATION_CONFNODE, \
     LOCATION_VAR_MEMORY
 
-try:
-    from nodelist import NodeList
-except ImportError:
-    base_folder = paths.AbsParentDir(__file__, 2)
-    CanFestivalPath = os.path.join(base_folder, "CanFestival-3")
-    sys.path.append(os.path.join(CanFestivalPath, "objdictgen"))
-
-    from nodelist import NodeList
+base_folder = paths.AbsParentDir(__file__, 2)
+CanFestivalPath = os.path.join(base_folder, "CanFestival-3")
+sys.path.append(os.path.join(CanFestivalPath, "objdictgen"))
+
+from nodelist import NodeList
 
 from nodemanager import NodeManager
 import gen_cfile