diff options
author | AMIT KUMAR YADAV | 2016-06-07 08:04:08 +0530 |
---|---|---|
committer | AMIT KUMAR YADAV | 2016-06-07 08:04:08 +0530 |
commit | f9b8c8d4944e0a67b86221a282026949f791c6e9 (patch) | |
tree | ea27016691ee00d18b484b4a2f87ad975f6c5c04 /blocks_xcos | |
parent | d6391c0909b8b5edb7692db4fcebb6cd4bd03538 (diff) | |
download | xcos-on-web-f9b8c8d4944e0a67b86221a282026949f791c6e9.tar.gz xcos-on-web-f9b8c8d4944e0a67b86221a282026949f791c6e9.tar.bz2 xcos-on-web-f9b8c8d4944e0a67b86221a282026949f791c6e9.zip |
Blocks SUPER_f ,INIMPL_f ,IN_f ,OUTIMPL_f ,OUT_f ,CLKINV_f and CLKOUTV_f must be handled separately
Diffstat (limited to 'blocks_xcos')
-rwxr-xr-x | blocks_xcos/Checker.py | 10 |
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()
|