From bcc0d1b98380f33b9d0c389f5322dc1e880af9e5 Mon Sep 17 00:00:00 2001 From: Fahim Date: Tue, 22 Sep 2015 13:00:38 +0530 Subject: Subject: Integrated OpemModelica Changes into develop branch Description: Integrated OpemModelica Changes into develop branch --- src/projManagement/Validation.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/projManagement/Validation.py') diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py index ac0473af..857f1987 100644 --- a/src/projManagement/Validation.py +++ b/src/projManagement/Validation.py @@ -110,4 +110,17 @@ class Validation: else: return "True" else: - return "DIREC" \ No newline at end of file + return "DIREC" + + def validateCirOut(self,projDir): + """ + This function checks if ".cir.out" file is present. + """ + projName = os.path.basename(str(projDir)) + lookCirOut = os.path.join(str(projDir),projName+".cir.out") + #Check existence of project + if os.path.exists(lookCirOut): + return True + else: + return False + \ No newline at end of file -- cgit