summaryrefslogtreecommitdiff
path: root/src/projManagement/Validation.py
diff options
context:
space:
mode:
authorfahim2015-03-11 16:53:05 +0530
committerfahim2015-03-11 16:53:05 +0530
commitc0e70c79a6d651cf8b3b397f866ae38485fa5ca0 (patch)
treedeff1c35ec424fe336d975c519c55e7b59deaa0d /src/projManagement/Validation.py
parent05de80920118454a0e08b6a41e6ee5eb81d09a8e (diff)
downloadeSim-c0e70c79a6d651cf8b3b397f866ae38485fa5ca0.tar.gz
eSim-c0e70c79a6d651cf8b3b397f866ae38485fa5ca0.tar.bz2
eSim-c0e70c79a6d651cf8b3b397f866ae38485fa5ca0.zip
Subject: Added new module kicadtongspice
Description: Develope skeleton body for kicadtongspice module
Diffstat (limited to 'src/projManagement/Validation.py')
-rw-r--r--src/projManagement/Validation.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py
index 323b509c..33f0894f 100644
--- a/src/projManagement/Validation.py
+++ b/src/projManagement/Validation.py
@@ -58,6 +58,16 @@ class Validation:
else:
return True
+ def validateCir(self,projDir):
+ print "Checking if .cir file is present or not"
+ projName = os.path.basename(str(projDir))
+ lookCir = os.path.join(str(projDir),projName+".cir")
+ #Check existence of project
+ if os.path.exists(lookCir):
+ return True
+ else:
+ return False
+