summaryrefslogtreecommitdiff
path: root/src/projManagement/Validation.py
diff options
context:
space:
mode:
authorFahim2015-09-22 13:00:38 +0530
committerFahim2015-09-22 13:00:38 +0530
commitbcc0d1b98380f33b9d0c389f5322dc1e880af9e5 (patch)
treeacea4e9db30199a5e77ed48cab4a1442126e612c /src/projManagement/Validation.py
parenteee965197bd83b44946ff2e218c5e5487e0cfe2e (diff)
downloadeSim-bcc0d1b98380f33b9d0c389f5322dc1e880af9e5.tar.gz
eSim-bcc0d1b98380f33b9d0c389f5322dc1e880af9e5.tar.bz2
eSim-bcc0d1b98380f33b9d0c389f5322dc1e880af9e5.zip
Subject: Integrated OpemModelica Changes into develop branch
Description: Integrated OpemModelica Changes into develop branch
Diffstat (limited to 'src/projManagement/Validation.py')
-rw-r--r--src/projManagement/Validation.py15
1 files changed, 14 insertions, 1 deletions
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