summaryrefslogtreecommitdiff
path: root/blocks_xcos
diff options
context:
space:
mode:
Diffstat (limited to 'blocks_xcos')
-rwxr-xr-xblocks_xcos/Checker.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/blocks_xcos/Checker.py b/blocks_xcos/Checker.py
index 5cccbf2..0722dc0 100755
--- a/blocks_xcos/Checker.py
+++ b/blocks_xcos/Checker.py
@@ -1,8 +1,16 @@
import os
+# Blocks SUPER_f ,INIMPL_f ,IN_f ,OUTIMPL_f ,OUT_f ,CLKINV_f and CLKOUTV_f don't contain simulationFunctionName attribute as their name
+# hence these blocks must be handled separately
+
+
+
nameList=os.listdir("xcos")
+script_dir = os.path.dirname(__file__)
+rel_path = "xcos"
+abs_file_path = os.path.join(script_dir, rel_path)
for i in nameList:
- ob=open(i,"r")
+ ob=open(os.path.join(abs_file_path,i),"r")
name=i[:-5]
fileVal=ob.readline()