Removed useless try/except in Canfestival.py
authorEdouard Tisserant
Thu, 12 Apr 2018 16:27:22 +0200
changeset 1979 dc9e6f97cd8c
parent 1974 b3a110daa135
child 1980 28a369bb2676
Removed useless try/except in Canfestival.py
canfestival/canfestival.py
--- 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