From f9b8c8d4944e0a67b86221a282026949f791c6e9 Mon Sep 17 00:00:00 2001 From: AMIT KUMAR YADAV Date: Tue, 7 Jun 2016 08:04:08 +0530 Subject: Blocks SUPER_f ,INIMPL_f ,IN_f ,OUTIMPL_f ,OUT_f ,CLKINV_f and CLKOUTV_f must be handled separately --- blocks_xcos/Checker.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'blocks_xcos') 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() -- cgit